summaryrefslogtreecommitdiffstats
path: root/src/partmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partmac.c')
-rw-r--r--src/partmac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/partmac.c b/src/partmac.c
index 4f08753..f3f86e7 100644
--- a/src/partmac.c
+++ b/src/partmac.c
@@ -33,6 +33,7 @@
#include <string.h>
#endif
#include <ctype.h> /* tolower */
+#include <assert.h>
#include "types.h"
#include "common.h"
#include "fnctdsk.h"
@@ -212,6 +213,7 @@ static list_part_t *init_part_order_mac(const disk_t *disk_car, list_part_t *lis
list_part_t *add_partition_mac_cli(disk_t *disk_car,list_part_t *list_part, char **current_cmd)
{
partition_t *new_partition=partition_new(&arch_mac);
+ assert(current_cmd!=NULL);
new_partition->part_offset=disk_car->sector_size;
new_partition->part_size=disk_car->disk_size-disk_car->sector_size;
while(*current_cmd[0]==',')