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

View file

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