summaryrefslogtreecommitdiffstats
path: root/apps/errstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/errstr.c')
-rw-r--r--apps/errstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/errstr.c b/apps/errstr.c
index 782705a78a..21349d21cb 100644
--- a/apps/errstr.c
+++ b/apps/errstr.c
@@ -62,7 +62,7 @@ int errstr_main(int argc, char **argv)
/* All remaining arg are error code. */
ret = 0;
for (argv = opt_rest(); *argv != NULL; argv++) {
- if (sscanf(*argv, "%lx", &l) == 0) {
+ if (sscanf(*argv, "%lx", &l) <= 0) {
ret++;
} else {
ERR_error_string_n(l, buf, sizeof(buf));