Skip to content

Commit fe6e76d

Browse files
author
Dane Springmeyer
committed
comparison between pointer and zero is not portable + avoids pedantic warning with clang++
1 parent b4c2516 commit fe6e76d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

output-pgsql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ void read_style_file( const char *filename )
188188
exit_nicely();
189189
}
190190
}
191-
if ((temp.flags!=FLAG_DELETE) && ((strchr(temp.name,'?') >0) || (strchr(temp.name,'*') >0))) {
192-
fprintf( stderr, "wildcard '%s' in non-delete style emtry\n",temp.name);
191+
if ((temp.flags!=FLAG_DELETE) && ((strchr(temp.name,'?') != NULL) || (strchr(temp.name,'*') != NULL))) {
192+
fprintf( stderr, "wildcard '%s' in non-delete style entry\n",temp.name);
193193
exit_nicely();
194194
}
195195

0 commit comments

Comments
 (0)