[master] 5fd49a1be Always assert VSB_finish()
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jun 14 06:29:06 UTC 2021
commit 5fd49a1be43c6d18cef48b4638c5f2ca947cbe58
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jun 14 06:28:20 2021 +0000
Always assert VSB_finish()
Spotted by: Coverity
diff --git a/lib/libvarnishapi/vxp_test.c b/lib/libvarnishapi/vxp_test.c
index 9f921c9a9..d44a9600a 100644
--- a/lib/libvarnishapi/vxp_test.c
+++ b/lib/libvarnishapi/vxp_test.c
@@ -77,7 +77,7 @@ main(int argc, char * const *argv)
vex = vex_New(q_arg, vsb, 0);
if (vex == NULL) {
- VSB_finish(vsb);
+ AZ(VSB_finish(vsb));
fprintf(stderr, "Error:\n%s", VSB_data(vsb));
VSB_destroy(&vsb);
free(q_arg);
More information about the varnish-commit
mailing list