From 31314c80594d47e740cbc7d544e8faeb6110c299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Manuel=20de=20Morais=20Santos=20Costa?= Date: Thu, 14 Jan 2010 15:43:18 +0000 Subject: [PATCH] fix warning about not checking output. --- C/iopreds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C/iopreds.c b/C/iopreds.c index 7449f0917..94783cc69 100755 --- a/C/iopreds.c +++ b/C/iopreds.c @@ -678,7 +678,9 @@ Yap_DebugGetc() curfile = NULL; } if (curfile == NULL) - (void)YP_fgets(my_line, 200, stdin); + if (YP_fgets(my_line, 200, stdin) == NULL) { + return EOF; + } eolflg = 0; lp = my_line; }