diff options
Diffstat (limited to 'edify/expr.c')
-rw-r--r-- | edify/expr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/edify/expr.c b/edify/expr.c index 7a5b2fbf8..360007586 100644 --- a/edify/expr.c +++ b/edify/expr.c @@ -50,6 +50,7 @@ Value* EvaluateValue(State* state, Expr* expr) { } Value* StringValue(char* str) { + if (str == NULL) return NULL; Value* v = malloc(sizeof(Value)); v->type = VAL_STRING; v->size = strlen(str); |