1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

repart: Put function call closer to its error handling

This commit is contained in:
Daan De Meyer 2023-08-15 12:09:31 +02:00
parent 4ccee4b426
commit 5f13fb0a73

View File

@ -2243,8 +2243,8 @@ static int context_load_partition_table(Context *context) {
return log_oom();
if (arg_sector_size > 0) {
r = fdisk_save_user_sector_size(c, /* phy= */ 0, arg_sector_size);
fs_secsz = arg_sector_size;
r = fdisk_save_user_sector_size(c, /* phy= */ 0, arg_sector_size);
} else {
uint32_t ssz;
struct stat st;