Skip to content

Commit

Permalink
Fix crash when creating partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcmaster-au committed Feb 2, 2017
1 parent 51b1a82 commit a7659ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hfdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a7659ed

Please sign in to comment.