shared/dissect-image: use strdup_to_full() in one more place

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-03-20 15:18:21 +01:00
parent 237bbec117
commit b41f88a23c
+1 -9
View File
@@ -268,16 +268,8 @@ int probe_filesystem_full(
(void) blkid_probe_lookup_value(b, "TYPE", &fstype, NULL);
if (fstype) {
char *t;
log_debug("Probed fstype '%s' on partition %s.", fstype, path);
t = strdup(fstype);
if (!t)
return -ENOMEM;
*ret_fstype = t;
return 1;
return strdup_to_full(ret_fstype, fstype);
}
not_found: