Added braces to suppress a warning.

This commit is contained in:
Pavel Roskin 1998-09-22 13:52:35 +00:00
parent 54d0fa6dc8
commit 4f3218f0bb

View File

@ -411,11 +411,12 @@ void do_external_panelize (char *command)
cpanel->has_dir_sizes = 0;
while (1) {
clearerr(external);
if (fgets (line, MC_MAXPATHLEN, external) == NULL)
if (fgets (line, MC_MAXPATHLEN, external) == NULL) {
if (ferror(external) && errno == EINTR)
continue;
else
break;
}
if (line[strlen(line)-1] == '\n')
line[strlen(line)-1] = 0;
if (strlen(line) < 1)