mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
btrfs: keep calloc and its error message match
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
committed by
Pino Toscano
parent
3f4ba2e98d
commit
9c24314f6f
@@ -479,7 +479,7 @@ do_btrfs_subvolume_list (const mountable_t *fs)
|
||||
ret->guestfs_int_btrfssubvolume_list_val =
|
||||
calloc (nr_subvolumes, sizeof (struct guestfs_int_btrfssubvolume));
|
||||
if (ret->guestfs_int_btrfssubvolume_list_val == NULL) {
|
||||
reply_with_perror ("malloc");
|
||||
reply_with_perror ("calloc");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@@ -1292,7 +1292,7 @@ do_btrfs_qgroup_show (const char *path)
|
||||
ret->guestfs_int_btrfsqgroup_list_val =
|
||||
calloc (nr_qgroups, sizeof (struct guestfs_int_btrfsqgroup));
|
||||
if (ret->guestfs_int_btrfsqgroup_list_val == NULL) {
|
||||
reply_with_perror ("malloc");
|
||||
reply_with_perror ("calloc");
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user