From 899f07f7c385b29b134827df0cd89a363445b2aa Mon Sep 17 00:00:00 2001 From: Rutger Hofman Date: Tue, 12 May 2009 14:40:39 +0000 Subject: [PATCH] Mwah, if -O then I get another warning (possibly uninitialized -- untrue but fixed) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1589 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/src/cmd/cmd_svf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/urjtag/src/cmd/cmd_svf.c b/urjtag/src/cmd/cmd_svf.c index 8c1b51eb..e03d8a17 100644 --- a/urjtag/src/cmd/cmd_svf.c +++ b/urjtag/src/cmd/cmd_svf.c @@ -48,7 +48,7 @@ cmd_svf_run (urj_chain_t *chain, char *params[]) int print_progress = 0; uint32_t ref_freq = 0; urj_log_level_t old_log_level = urj_log_state.level; - int result; + int result = URJ_STATUS_OK; num_params = urj_cmd_params (params); if (num_params < 2) @@ -72,9 +72,7 @@ cmd_svf_run (urj_chain_t *chain, char *params[]) if ((SVF_FILE = fopen (params[1], "r")) != NULL) { - if (urj_svf_run (chain, SVF_FILE, stop, ref_freq)) - result = URJ_STATUS_OK; - else + if (! urj_svf_run (chain, SVF_FILE, stop, ref_freq)) result = URJ_STATUS_FAIL; fclose (SVF_FILE);