tree-wide: check if errno is greater than zero (2)

Compare errno with zero in a way that tells gcc that
(if the condition is true) errno is positive.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-01-13 15:10:17 -05:00
parent f5e5c28f42
commit b326715278
15 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -2683,7 +2683,7 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
fputc('\n', f);
}
if (c->syscall_errno != 0)
if (c->syscall_errno > 0)
fprintf(f,
"%sSystemCallErrorNumber: %s\n",
prefix, strna(errno_to_name(c->syscall_errno)));