print string when it's not null
This commit is contained in:
parent
188d175579
commit
e842cfd011
@ -4,7 +4,7 @@
|
||||
|
||||
void herror(const char *s) {
|
||||
if(s)
|
||||
fiprintf(stderr, "%s\n", hstrerror(h_errno));
|
||||
else
|
||||
fiprintf(stderr, "%s: %s\n", s, hstrerror(h_errno));
|
||||
else
|
||||
fiprintf(stderr, "%s\n", hstrerror(h_errno));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user