Commit 3fe20d03 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Check return value from VSB_finish

Spotted by: Coverity
parent 8d5752d0
......@@ -295,7 +295,7 @@ vslq_newquery(struct VSL_data *vsl, enum VSL_grouping_e grouping,
vsb = VSB_new_auto();
AN(vsb);
vex = vex_New(querystring, vsb);
VSB_finish(vsb);
AZ(VSB_finish(vsb));
if (vex == NULL)
vsl_diag(vsl, "%s", VSB_data(vsb));
else {
......
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