fix warning about not checking output.

This commit is contained in:
Vítor Manuel de Morais Santos Costa 2010-01-14 15:43:18 +00:00
parent 8d5c490ff7
commit 31314c8059
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}