Commit 446695e9 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Spring some AN() love

parent 86d73a65
......@@ -531,6 +531,7 @@ addf_auth(const char *str)
struct format *f;
ALLOC_OBJ(f, FORMAT_MAGIC);
AN(f);
f->func = &format_auth;
if (str != NULL) {
f->string = strdup(str);
......
......@@ -105,6 +105,7 @@ vsc_setup(struct VSM_data *vd)
CHECK_OBJ_NOTNULL(vd, VSM_MAGIC);
if (vd->vsc == NULL) {
ALLOC_OBJ(vd->vsc, VSC_MAGIC);
AN(vd->vsc);
VTAILQ_INIT(&vd->vsc->vf_list);
VTAILQ_INIT(&vd->vsc->pt_list);
VTAILQ_INIT(&vd->vsc->sf_list);
......
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