summaryrefslogtreecommitdiffstats
path: root/src/partsun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partsun.c')
-rw-r--r--src/partsun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 122a64a..1bf80c9 100644
--- a/src/partsun.c
+++ b/src/partsun.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"
@@ -218,6 +219,7 @@ static list_part_t *init_part_order_sun(const disk_t *disk_car, list_part_t *lis
list_part_t *add_partition_sun_cli(disk_t *disk_car,list_part_t *list_part, char **current_cmd)
{
CHS_t start,end;
+ assert(current_cmd!=NULL);
partition_t *new_partition=partition_new(&arch_sun);
start.cylinder=0;
start.head=0;