diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/analysis/types/encaps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analysis/types/encaps.c b/src/analysis/types/encaps.c index 537d849..36dc71a 100644 --- a/src/analysis/types/encaps.c +++ b/src/analysis/types/encaps.c @@ -24,6 +24,9 @@ #include "encaps.h" +#include <assert.h> + + #include "../routine.h" #include "../type-int.h" #include "../../common/extstr.h" @@ -143,11 +146,13 @@ GDataType *g_encapsulated_type_new(EncapsulationType type, ...) { case ECT_ROUTINE: result->routine = va_arg(ap, GBinRoutine *); + assert(result->routine != NULL); g_binary_routine_set_name(result->routine, "(*)"); break; default: result->child = va_arg(ap, GDataType *); + assert(result->child != NULL); break; } |