diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-20 17:14:40 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-20 17:14:40 -0800 |
commit | 24ae9e44d6aa93d7f36746d02cb0401e8a925fde (patch) | |
tree | 8b476ee63128ef660b6bf8a3cb6d18a4fdba930a /src/stem.c | |
parent | a029f736b01fdf566954a8fc91002804869eb444 (diff) |
fix segfault
Diffstat (limited to 'src/stem.c')
-rw-r--r-- | src/stem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ value_t *value_copy(value_t *v) { a->type = v->type; if (v->type == VINT || v->type == VFLOAT) { a->int_float = v->int_float; - } else if (v->type == VSTR || v->type == VWORD) { + } else if (v->type == VSTR || v->type == VWORD || v->type == VERR) { a->str_word = string_copy(v->str_word); a->escaped = v->escaped; } else if (v->type == VQUOTE) { |