]> git.ozlabs.org Git - petitboot/blobdiff - discover/paths.c
discover/paths: Set suffix to default value on error.
[petitboot] / discover / paths.c
index 45988c1ab76b9023e5053b8fb3c4b33aac2d0631..c0e2b0638a2e59f8c1d84616620f0ae167741842 100644 (file)
@@ -184,8 +184,10 @@ static int busybox_progress_cb(void *arg)
                                }
        }
 
                                }
        }
 
-       if (rc != 3)
+       if (rc != 3) {
                percentage = size = 0;
                percentage = size = 0;
+               suffix = ' ';
+       }
 
        device_handler_status_download(handler, procinfo,
                        percentage, size, suffix);
 
        device_handler_status_download(handler, procinfo,
                        percentage, size, suffix);