Commit 06575ef4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add missing asserts

parent 73629964
......@@ -536,6 +536,7 @@ vcl_print_refs(const struct vcl *vcl)
CHECK_OBJ_NOTNULL(vcl, VCL_MAGIC);
msg = VSB_new_auto();
AN(msg);
VSB_printf(msg, "VCL %s is waiting for:", vcl->loaded_name);
Lck_Lock(&vcl_mtx);
......@@ -646,6 +647,7 @@ vcl_load(struct cli *cli,
AZ(vcl);
msg = VSB_new_auto();
AN(msg);
vcl = VCL_Open(fn, msg);
AZ(VSB_finish(msg));
if (vcl == NULL) {
......
......@@ -251,6 +251,7 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
struct vsb *vsb;
vsb = VSB_new_auto();
AN(vsb);
(void)priv;
if (av[2] != NULL && !strcmp(av[2], "changed"))
......@@ -373,7 +374,9 @@ mcf_param_show_json(struct cli *cli, const char * const *av, void *priv)
}
vsb = VSB_new_auto();
AN(vsb);
def = VSB_new_auto();
AN(def);
n = 0;
VCLI_JSON_begin(cli, 2, av);
......
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