summaryrefslogtreecommitdiffstats
path: root/mod_virtualvalue.c
diff options
context:
space:
mode:
Diffstat (limited to 'mod_virtualvalue.c')
-rw-r--r--mod_virtualvalue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod_virtualvalue.c b/mod_virtualvalue.c
index 5914047..c2c607c 100644
--- a/mod_virtualvalue.c
+++ b/mod_virtualvalue.c
@@ -463,6 +463,9 @@ static const char *vv_set (cmd_parms *cmd, void *struct_ptr __U__, int argc, cha
n = vv_var_new ();
+ if (!n)
+ return NULL;
+
if (!c->vars) {
c->vars = n;
}