mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-24 19:24:48 +03:00
Added braces to suppress a warning.
This commit is contained in:
parent
54d0fa6dc8
commit
4f3218f0bb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user