From 5b8210bd559437010ef3692122af008bffe29b4c Mon Sep 17 00:00:00 2001 From: Taylor Hutt Date: Tue, 31 Jul 2012 11:16:23 -0700 Subject: 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 Change-Id: I4ab368b5c60afbed28a5b6d5417e18bedf986e2d Reviewed-on: https://gerrit.chromium.org/gerrit/28827 Reviewed-by: Randall Spangler Tested-by: Taylor Hutt Commit-Ready: Taylor Hutt --- cgpt/cgpt_boot.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cgpt/cgpt_boot.c') 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; } -- cgit v1.2.1