Skip to content

Commit acad90d

Browse files
author
Tor Didriksen
committed
Bug #25643811: MYSQL DOES NOT COMPILE WITH GCC 7
cmd-line-utils/libedit/terminal.c:366:28: warning: comparison between pointer and zero character constant [-Wpointer-compare]
1 parent 6f9332b commit acad90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd-line-utils/libedit/terminal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ terminal_alloc(EditLine *el, const struct termcapstr *t, const char *cap)
363363
*/
364364
tlen = 0;
365365
for (tmp = tlist; tmp < &tlist[T_str]; tmp++)
366-
if (*tmp != NULL && *tmp != '\0' && *tmp != *str) {
366+
if (*tmp != NULL && **tmp != '\0' && *tmp != *str) {
367367
char *ptr;
368368

369369
for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++)

0 commit comments

Comments
 (0)