evas: Fix unused return code warnings... check return codes

Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 78273
This commit is contained in:
Mike McCormack 2012-10-19 23:50:44 +00:00 committed by Mike McCormack
parent 2a8b05eb03
commit 19761ae0f8
1 changed files with 8 additions and 2 deletions

View File

@ -37,7 +37,12 @@ _read_line(char *buf, int size)
int len;
char *c;
fgets(buf, size, stdin);
if (!fgets(buf, size, stdin))
{
buf[0] = 0;
return 0;
}
c = strchr(buf, '#');
if (c)
*c = '\0';
@ -354,7 +359,8 @@ int main(void)
skip_cmd = 0;
else
printf("\n> ");
fgets(cmd, sizeof(cmd), stdin);
if (!fgets(cmd, sizeof(cmd), stdin))
break;
len = strlen(cmd) - 1;
cmd[len] = '\0';