diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-12 11:29:06 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-13 09:29:38 +0000 |
commit | 53efcc7cc5339d8df9cf89c4513f28cce7322849 (patch) | |
tree | a2eb2a704df9205b9a3fcc33bb66a6d5cfaed7d4 /src | |
parent | 8c1f33533108972496f545154dc06db0a44f691c (diff) | |
download | libguestfs-53efcc7cc5339d8df9cf89c4513f28cce7322849.tar.gz libguestfs-53efcc7cc5339d8df9cf89c4513f28cce7322849.tar.xz libguestfs-53efcc7cc5339d8df9cf89c4513f28cce7322849.zip |
inspect: Move variable decl to top of function.
(cherry picked from commit 46d1280100b025de2a448331306e794d688748bd)
Diffstat (limited to 'src')
-rw-r--r-- | src/inspect_fs_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index a588a9c8..1a6d0fb6 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -1046,10 +1046,12 @@ map_md_devices(guestfs_h *g, Hash_table **map) { Hash_table *app_map = NULL; char **matches = NULL; + int n_app_md_devices; + *map = NULL; /* Get a map of md device uuids to their device names in the appliance */ - int n_app_md_devices = map_app_md_devices(g, &app_map); + n_app_md_devices = map_app_md_devices (g, &app_map); if (n_app_md_devices == -1) goto error; /* Nothing to do if there are no md devices */ |