mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
Warning suppression.
This commit is contained in:
@@ -74,7 +74,7 @@ void showfile(char *fname)
|
||||
{
|
||||
int i, bh = bodylen();
|
||||
FILE *fp;
|
||||
char buf[MAXSTRLEN];
|
||||
char buf[MAXSTRLEN], *result;
|
||||
bool ateof = FALSE;
|
||||
|
||||
statusmsg("FileBrowser: Hit key to continue, Q to quit");
|
||||
@@ -88,9 +88,9 @@ void showfile(char *fname)
|
||||
for (i = 0; i < bh - 1 && !ateof; i++)
|
||||
{
|
||||
buf[0] = '\0';
|
||||
fgets(buf, MAXSTRLEN, fp);
|
||||
result = fgets(buf, MAXSTRLEN, fp);
|
||||
|
||||
if (strlen(buf))
|
||||
if (result && strlen(buf))
|
||||
bodymsg(buf);
|
||||
else
|
||||
ateof = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user