From 73ec5e164c8e67bb2621c58fcccbdef54da8e1ca Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 10 Jun 2019 11:43:56 +0200 Subject: libfdisk: fix fdisk_script_get_table() Make sure we never return NULL and we reuse the table in code. Signed-off-by: Karel Zak --- libfdisk/src/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libfdisk/src/table.c') 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. */ -- cgit v1.2.3-55-g7522