From: Eric Biggers Date: Sat, 25 May 2013 17:32:41 +0000 (-0500) Subject: imagex_extract(): Style X-Git-Tag: v1.4.2~11 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=c96b2f0b3abd04db061abbf5027476d07472de4d;ds=sidebyside imagex_extract(): Style --- diff --git a/programs/imagex.c b/programs/imagex.c index aa3cbbf4..34fb8678 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -2348,10 +2348,8 @@ imagex_extract(int argc, tchar **argv) cmds = prepare_extract_commands(argv, argc, extract_flags, dest_dir, &num_cmds); - if (!cmds) { - ret = -1; - goto out; - } + if (!cmds) + goto out_err; ret = wimlib_open_wim(wimfile, open_flags, &wim, imagex_progress_func); if (ret) @@ -2401,8 +2399,10 @@ out_free_cmds: free_extract_commands(cmds, num_cmds, dest_dir); out: return ret; + out_usage: usage(EXTRACT); +out_err: ret = -1; goto out; }