summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-13 14:55:14 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-13 14:55:14 +0000
commit9674a73c08e128d8a7a39a6be6140c373c0e61f0 (patch)
treeb0a74a1c4908bc05f3b3ae0982bb50c134db038d /src
parente44cf42f362d793c47d892a18a6853d88abd6ecb (diff)
downloadlibguestfs-9674a73c08e128d8a7a39a6be6140c373c0e61f0.tar.gz
libguestfs-9674a73c08e128d8a7a39a6be6140c373c0e61f0.tar.xz
libguestfs-9674a73c08e128d8a7a39a6be6140c373c0e61f0.zip
inspect: Fix error out path if minor_version parsing fails.
Diffstat (limited to 'src')
-rw-r--r--src/inspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspect.c b/src/inspect.c
index bd6d1895..962fd009 100644
--- a/src/inspect.c
+++ b/src/inspect.c
@@ -1028,7 +1028,7 @@ check_windows_registry (guestfs_h *g, struct inspect_fs *fs)
if (fs->minor_version == -1) {
free (key);
free (version);
- return -1;
+ goto out;
}
}