diff --git a/daemon/recording.c b/daemon/recording.c index e9a46818a..4b6e8b0e4 100644 --- a/daemon/recording.c +++ b/daemon/recording.c @@ -846,6 +846,8 @@ static int append_meta_chunk(struct recording *recording, const char *buf, unsig const char *label_fmt, ...) { va_list ap; + if (!recording->proc.meta_filepath) + return -1; va_start(ap, label_fmt); int ret = vappend_meta_chunk(recording, buf, buflen, label_fmt, ap); va_end(ap);