diff options
Diffstat (limited to 'builtins/functions.c')
| -rw-r--r-- | builtins/functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/functions.c b/builtins/functions.c index 3fbccf84..18a8d3bd 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -206,7 +206,7 @@ public void end_test(void *expr, const TypeInfo *type, const char *expected, con (void)start; (void)end; --TEST_DEPTH; - if (!expr) return; + if (!expr || !type) return; Text_t expr_text = generic_as_text(expr, USE_COLOR, type); Text_t type_name = generic_as_text(NULL, false, type); |
