Skip to content

Commit

Permalink
Merge pull request allinurl#955 from TerraTech/fix/clang/parser.c
Browse files Browse the repository at this point in the history
parser.c: fix warning: comparison of array 'hour' equal to a null pointer is always false
  • Loading branch information
allinurl authored Nov 29, 2017
2 parents 72a334f + 6ccc2f6 commit 2883cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,7 @@ gen_visit_time_key (GKeyData * kdata, GLogItem * logitem)
0)
return 1;

if (hour == '\0')
if (*hour == '\0')
return 1;

if ((hmark = strchr (hour, ':')))
Expand Down

0 comments on commit 2883cd6

Please sign in to comment.