From 440b41b4b5d5c971a495d1d92d3236cb8bc4669b Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 3 Mar 2013 13:57:13 -0600 Subject: [PATCH] imagex_mount_rw_or_no(): Fix early return --- programs/imagex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/imagex.c b/programs/imagex.c index 30ffd374..5ab9aeba 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -1489,7 +1489,7 @@ static int imagex_mount_rw_or_ro(int argc, const char **argv) if (mount_flags & WIMLIB_MOUNT_FLAG_READWRITE) { ret = file_writable(wimfile); if (ret != 0) - return ret; + goto out; } ret = wimlib_mount_image(w, image, dir, mount_flags, additional_swms, -- 2.43.0