From: Alexander Traud Date: Sat, 6 Jan 2018 12:45:28 +0000 (+0100) Subject: editline: Avoid comparison between pointer and zero character constant. X-Git-Tag: 13.20.0-rc1~119^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a68da3006965fd9e12da9647cfe78c534f05eab7;p=thirdparty%2Fasterisk.git editline: Avoid comparison between pointer and zero character constant. gcc 7.2 warned about this. ASTERISK-27559 Change-Id: I48960dda9cf0a11b6a9426f775e632363f8caa74 --- diff --git a/main/editline/term.c b/main/editline/term.c index 03623be218..6814cc4caa 100644 --- a/main/editline/term.c +++ b/main/editline/term.c @@ -428,7 +428,7 @@ term_alloc(EditLine *el, const struct termcapstr *t, const char *cap) */ tlen = 0; for (tmp = tlist; tmp < &tlist[T_str]; tmp++) - if (*tmp != NULL && *tmp != '\0' && *tmp != *str) { + if (*tmp != NULL && **tmp != '\0' && *tmp != *str) { char *ptr; for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++)