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