diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-11-09 14:45:58 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-12-17 14:51:46 +1100 |
commit | eea8cf830616dbbd9024b7d704cf0ccf2dac4767 (patch) | |
tree | a2eae11b0af3de7c71d74d7acac9952b485c6f3e /discover/platform-powerpc.c | |
parent | 0dae90626e54e46372c9feddc2f9ac82f046547d (diff) | |
download | petitboot-eea8cf830616dbbd9024b7d704cf0ccf2dac4767.zip petitboot-eea8cf830616dbbd9024b7d704cf0ccf2dac4767.tar.gz |
discover: Properly handle return values
Fixes three unchecked return values, and one missing
initialisation.
Fixes Coverity defects #30450, #30451, #30454, and #30483
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/platform-powerpc.c')
-rw-r--r-- | discover/platform-powerpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c index 2807934..ce4eb81 100644 --- a/discover/platform-powerpc.c +++ b/discover/platform-powerpc.c @@ -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"; |