Commit 7dda86f1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a NULL pointer check

parent 15ee0c7c
......@@ -66,7 +66,8 @@ vslq_newquery(struct VSL_data *vsl, enum VSL_grouping_e grouping,
}
ALLOC_OBJ(query, VSLQ_QUERY_MAGIC);
query->regex = regex;
if (query != NULL)
query->regex = regex;
return (query);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment