diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-08-18 17:25:23 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-08-18 17:25:23 +0000 |
commit | 3f97b80784e151405de359b7e561bd4540457531 (patch) | |
tree | d925a43117ebe4dfef455871e41f0f875c66e30d /gpsd.c | |
parent | 2bf1a6cd107419f99c93652e28e166ba20632134 (diff) | |
download | gpsd-3f97b80784e151405de359b7e561bd4540457531.tar.gz |
strchr returns char *, so test it against NULL (a pointer) not 0 (an integer)
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1166,7 +1166,7 @@ static void handle_control(int sfd, char *buf) } else if (buf[0] == '!') { p = snarfline(buf+1, &stash); eq = strchr(stash, '='); - if (!eq) { + if (eq == NULL) { gpsd_report(1,"<= control(%d): ill-formed command \n", sfd); (void)write(sfd, "ERROR\n", 3); } else { |