print string when it's not null

This commit is contained in:
WinterMute 2019-06-05 15:30:06 +01:00
parent 188d175579
commit e842cfd011

View File

@ -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));
}