Remove extra loop

This commit is contained in:
Arun Prakash Jana 2019-01-24 21:16:37 +05:30
parent 278280a741
commit 5e5ca2fc95
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 5 additions and 8 deletions

View File

@ -2293,16 +2293,13 @@ static bool show_help(char *path)
start = end = helpstr;
while (*end) {
while (*end != '\n')
++end;
if (start == end) {
++end;
continue;
if (*end == '\n') {
dprintf(fd, "%*c%.*s",
xchartohex(*start), ' ', (int)(end - start), start + 1);
start = end + 1;
}
dprintf(fd, "%*c%.*s", xchartohex(*start), ' ', (int)(end - start), start + 1);
start = ++end;
++end;
}
dprintf(fd, "\nVOLUME: %s of ", coolsize(get_fs_info(path, FREE)));