summary refs log tree commit diff
path: root/stdio-common/scanf7.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/scanf7.c')
-rw-r--r--stdio-common/scanf7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/scanf7.c b/stdio-common/scanf7.c
index 17d087216b..c746e47666 100644
--- a/stdio-common/scanf7.c
+++ b/stdio-common/scanf7.c
@@ -16,7 +16,7 @@ main (int argc, char *argv[])
   n = -2;
   ret = sscanf ("1000", "%llld", &n);
   printf ("%%llld: ret: %d, n: %Ld\n", ret, n);
-  if (ret != 0 || n >= 0L)
+  if (ret > 0 || n >= 0L)
     abort ();
 
   return 0;