X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Finspect.c;h=e49cb1f1edfd78217099bc59e402896805048aa5;hb=6042ec5141c2ba0b0897fafbcae7192767c1520f;hp=1b41be58be2904e9d108249b5740f1af712123ae;hpb=1a561be63c7670dca40c14b702f3610165ad880a;p=libguestfs.git diff --git a/src/inspect.c b/src/inspect.c index 1b41be5..e49cb1f 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -61,8 +61,7 @@ guestfs__inspect_os (guestfs_h *g) * information to the handle. */ /* Look to see if any devices directly contain filesystems (RHBZ#590167). */ - char **devices; - devices = guestfs_list_devices (g); + char **devices = guestfs_list_devices (g); if (devices == NULL) return NULL; @@ -77,8 +76,7 @@ guestfs__inspect_os (guestfs_h *g) guestfs___free_string_list (devices); /* Look at all partitions. */ - char **partitions; - partitions = guestfs_list_partitions (g); + char **partitions = guestfs_list_partitions (g); if (partitions == NULL) { guestfs___free_inspect_info (g); return NULL;