diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-11-06 08:55:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 08:55:52 -0500 |
commit | 52e6d0f495023c0aa939bf6b2170ca5ea853202b (patch) | |
tree | 897a87316c280b6824892368662afcb848de1cf6 /include/core.h | |
parent | 6db1b15b5c62d6fb52825c1d833ac8dfa9a49fbb (diff) | |
parent | 46ae10e55603b8852612ebe12c7636c2b358bdd6 (diff) | |
download | stasis-52e6d0f495023c0aa939bf6b2170ca5ea853202b.tar.gz |
Merge pull request #67 from jhunkeler/safety-and-convenience
Safety and convenience
Diffstat (limited to 'include/core.h')
-rw-r--r-- | include/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core.h b/include/core.h index b0a1a11..b8b047f 100644 --- a/include/core.h +++ b/include/core.h @@ -12,7 +12,7 @@ #include <sys/statvfs.h> #define SYSERROR(MSG, ...) do { \ - fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, strerror(errno) ? "info" : strerror(errno)); \ + fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, (errno > 0) ? strerror(errno) : "info"); \ fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \ } while (0) #define STASIS_BUFSIZ 8192 |