summaryrefslogtreecommitdiffstats
path: root/src/chgtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chgtype.c')
-rw-r--r--src/chgtype.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chgtype.c b/src/chgtype.c
index 8446c9f..5db0301 100644
--- a/src/chgtype.c
+++ b/src/chgtype.c
@@ -27,6 +27,7 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#include <assert.h>
#include "types.h"
#include "common.h"
#include "chgtype.h"
@@ -38,6 +39,8 @@ extern const arch_fnct_t arch_none;
void change_part_type_cli(const disk_t *disk_car,partition_t *partition, char **current_cmd)
{
+ assert(current_cmd!=NULL);
+ assert(partition!=NULL);
if(*current_cmd==NULL || partition->arch==NULL)
return ;
if(partition->arch==NULL)