aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/scanf12.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/scanf12.c')
-rw-r--r--stdio-common/scanf12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/scanf12.c b/stdio-common/scanf12.c
index b557785377..db37e2fedc 100644
--- a/stdio-common/scanf12.c
+++ b/stdio-common/scanf12.c
@@ -7,7 +7,7 @@ main (void)
double d;
int c;
- if (scanf ("%lg", &d) != EOF)
+ if (scanf ("%lg", &d) != 0)
{
printf ("scanf didn't failed\n");
exit (1);