summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Hutt <thutt@chromium.org>2012-07-31 11:16:23 -0700
committerRandall Spangler <rspangler@chromium.org>2012-08-06 10:07:27 -0700
commit1d97ade8b503d2f3b239bed779cdda990b5a3e56 (patch)
treea445b8fc979fa67baf1ebd7b97654dbd5d59b41b
parent2b45044edf702db665865de5b1b903346ed407a8 (diff)
downloadvboot-1d97ade8b503d2f3b239bed779cdda990b5a3e56.tar.gz
Fix 'possible use of unassigned' variable 'retval'.
This change ensures that 'retval' is set for all paths to 'done'. BUG=none TEST=Now compiles without warning. Signed-off-by: Taylor Hutt <thutt@chromium.org> Original-Change-Id: I4ab368b5c60afbed28a5b6d5417e18bedf986e2d (cherry picked from commit 5b8210bd559437010ef3692122af008bffe29b4c) Change-Id: Ic0589871a2f8dd984c42412ba33ff344c1325ddd Reviewed-on: https://gerrit.chromium.org/gerrit/29277 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--cgpt/cgpt_boot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgpt/cgpt_boot.c b/cgpt/cgpt_boot.c
index d3d207a7..9176a0cb 100644
--- a/cgpt/cgpt_boot.c
+++ b/cgpt/cgpt_boot.c
@@ -33,6 +33,7 @@ int cgpt_get_boot_partition_number(CgptBootParams *params) {
if (CGPT_OK != ReadPMBR(&drive)) {
Error("Unable to read PMBR\n");
+ retval = CGPT_FAILED;
goto done;
}