From 85fb2af369e9ea8638beaf3a34865e3553329a02 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Nov 2014 05:12:55 +0100 Subject: 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. --- ta/ta_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ta/ta_utils.c') 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 -- cgit v1.2.3