diff options
Diffstat (limited to 'libfdisk/src')
| -rw-r--r-- | libfdisk/src/gpt.c | 2 | ||||
| -rw-r--r-- | libfdisk/src/script.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index d18d4cab43..40d0912ecf 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -1925,7 +1925,7 @@ fail: static int gpt_write_pmbr(struct fdisk_context *cxt) { off_t offset; - struct gpt_legacy_mbr *pmbr = NULL; + struct gpt_legacy_mbr *pmbr; assert(cxt); assert(cxt->firstsector); diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index 198e9edb91..be325bc09b 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -1528,7 +1528,7 @@ static int test_apply(struct fdisk_test *ts, int argc, char *argv[]) { char *devname = argv[1], *scriptname = argv[2]; struct fdisk_context *cxt; - struct fdisk_script *dp = NULL; + struct fdisk_script *dp; struct fdisk_table *tb = NULL; struct fdisk_iter *itr = NULL; struct fdisk_partition *pa = NULL; |
