diff options
Diffstat (limited to 'src/binlog.c')
-rw-r--r-- | src/binlog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/binlog.c b/src/binlog.c index 6f438a8..b2d9f87 100644 --- a/src/binlog.c +++ b/src/binlog.c @@ -209,12 +209,14 @@ vmod_init(struct sess *sp, struct vmod_priv *priv, AN(conf->dir); conf->inst_head = packcomp(dataspec, &p); + AN(conf->inst_head); if (*p) { binlog_error("cannot compile data format near %s", p); abort(); } conf->recsize = packsize(conf->inst_head); conf->env = packenv_create(conf->recsize); + AN(conf->env); conf->recsize += offsetof(struct binlog_record,data); conf->dataspec = strdup(dataspec); AN(conf->dataspec); |