Skip to content

Commit

Permalink
Make sure we test explicitly for non-zero string; no warnings are gen…
Browse files Browse the repository at this point in the history
…erated.
  • Loading branch information
wkoszek committed Aug 18, 2015
1 parent b7445bf commit 01fef30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ void
fatal(s,t)
char*s,*t;
{
if(*s)printf(s);
if(*s!='\0')printf("%s",s);
err_print(t);
history= fatal_message;exit(wrap_up());
}
Expand Down
2 changes: 1 addition & 1 deletion common.w
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ concatenated to print the final error message.
fatal(s,t)
char *s,*t;
{
if (*s) printf("%s", s);
if (*s != '\0') printf("%s", s);
err_print(t);
history=fatal_message; exit(wrap_up());
}
Expand Down

0 comments on commit 01fef30

Please sign in to comment.