discover: Properly handle return values
[petitboot] / discover / platform-powerpc.c
index 280793425198a483ecea8c1e4217b9844728d842..ce4eb8199ed33d01570e14aac57ce924fba3bb90 100644 (file)
@@ -179,7 +179,7 @@ static int write_nvram(struct platform_powerpc *platform)
        struct process *process;
        struct param *param;
        const char *argv[6];
-       int rc;
+       int rc = 0;
 
        argv[0] = "nvram";
        argv[1] = "--update-config";