diff options
author | wm4 <wm4@nowhere> | 2014-11-21 05:12:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-21 05:18:09 +0100 |
commit | 85fb2af369e9ea8638beaf3a34865e3553329a02 (patch) | |
tree | 5d73b2ea57a66fc8e9ef33358a4aa89071a2e60f /ta/ta_utils.c | |
parent | 4704fab82c084dbcca52b5e75f7a36877921dbd9 (diff) | |
download | mpv-85fb2af369e9ea8638beaf3a34865e3553329a02.tar.bz2 mpv-85fb2af369e9ea8638beaf3a34865e3553329a02.tar.xz |
Remove some superfluous NULL checks
In all of these situations, NULL is logically not allowed, making the
checks redundant.
Coverity complained about accessing the pointers before checking them
for NULL later.
Diffstat (limited to 'ta/ta_utils.c')
-rw-r--r-- | ta/ta_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ta/ta_utils.c b/ta/ta_utils.c index 7c66a14490..80a42bb16d 100644 --- a/ta/ta_utils.c +++ b/ta/ta_utils.c @@ -247,7 +247,7 @@ bool ta_asprintf_append(char **str, const char *fmt, ...) bool ta_vasprintf_append(char **str, const char *fmt, va_list ap) { - return ta_vasprintf_append_at(str, str && *str ? strlen(*str) : 0, fmt, ap); + return ta_vasprintf_append_at(str, *str ? strlen(*str) : 0, fmt, ap); } /* Append the formatted string at the end of the allocation of *str. It |