diff options
author | Karel Zak | 2019-06-10 11:43:56 +0200 |
---|---|---|
committer | Karel Zak | 2019-06-17 15:46:10 +0200 |
commit | 73ec5e164c8e67bb2621c58fcccbdef54da8e1ca (patch) | |
tree | 281d3d1bd5ce50cfaeaf15499875328948de8da1 /libfdisk/src/table.c | |
parent | libfdisk: (docs) add notes about fdisk_enable_wipe() (diff) | |
download | kernel-qcow2-util-linux-73ec5e164c8e67bb2621c58fcccbdef54da8e1ca.tar.gz kernel-qcow2-util-linux-73ec5e164c8e67bb2621c58fcccbdef54da8e1ca.tar.xz kernel-qcow2-util-linux-73ec5e164c8e67bb2621c58fcccbdef54da8e1ca.zip |
libfdisk: fix fdisk_script_get_table()
Make sure we never return NULL and we reuse the table in code.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/table.c')
-rw-r--r-- | libfdisk/src/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/table.c b/libfdisk/src/table.c index 1f9d5a28a..8a3a935af 100644 --- a/libfdisk/src/table.c +++ b/libfdisk/src/table.c @@ -303,7 +303,7 @@ int fdisk_table_remove_partition(struct fdisk_table *tb, struct fdisk_partition * @tb: returns table * * This function adds partitions from disklabel to @table, it allocates a new - * table if if @table points to NULL. + * table if @table points to NULL. * * Returns: 0 on success, otherwise, a corresponding error. */ |