Skip to content

Commit e842cfd

Browse files
committed
print string when it's not null
1 parent 188d175 commit e842cfd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libctru/source/services/soc/soc_herror.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
void herror(const char *s) {
66
if(s)
7-
fiprintf(stderr, "%s\n", hstrerror(h_errno));
8-
else
97
fiprintf(stderr, "%s: %s\n", s, hstrerror(h_errno));
8+
else
9+
fiprintf(stderr, "%s\n", hstrerror(h_errno));
1010
}

0 commit comments

Comments
 (0)