mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
inspect: Fix improperly ignored error in check_filesystem
This commit is contained in:
@@ -175,8 +175,9 @@ check_filesystem (guestfs_h *g, const char *device, int whole_device)
|
||||
|
||||
int partnum = -1;
|
||||
if (!whole_device) {
|
||||
guestfs_push_error_handler (g, NULL, NULL);
|
||||
partnum = guestfs_part_to_partnum (g, device);
|
||||
/* If this returns an error it just means it's not a partition */
|
||||
guestfs_pop_error_handler (g);
|
||||
}
|
||||
|
||||
struct inspect_fs *fs = &g->fses[g->nr_fses-1];
|
||||
|
||||
Reference in New Issue
Block a user