]> localhost Git - hfdisk.git/commitdiff
Fix crash when creating partitions master origin/HEAD origin/master
authorMichael McMaster <michael@codesrc.com>
Thu, 2 Feb 2017 10:58:20 +0000 (20:58 +1000)
committerMichael McMaster <michael@codesrc.com>
Thu, 2 Feb 2017 10:58:20 +0000 (20:58 +1000)
hfdisk.c

index ec58652ea3dad9da071ae7572231a507d6ee38e0..5bf49f35c83ca81523c338b3be9fa11b0fe0d403 100644 (file)
--- a/hfdisk.c
+++ b/hfdisk.c
@@ -342,8 +342,8 @@ do_create_partition(partition_map_header *map, int get_type)
 {
     long base;
     long length;
-    char *name;
-    char *type_name;
+    char *name = NULL;
+    char *type_name = NULL;
 
     if (map == NULL) {
        bad_input("No partition map exists");