diff options
Diffstat (limited to 'src/inspect_fs_unix.c')
-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 09d47d6b..74f014c6 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -1066,10 +1066,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 */ |