From 32e15c3f458c2e8838a9ecf7d478ecb6750516bf Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Tue, 20 Jul 2021 23:22:37 +0100 Subject: [PATCH] canonicalise_opt must always return heap memory. Thanks to Max Julian Hofmann for spotting this. --- src/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option.c b/src/option.c index 84c9ef3..ca8563a 100644 --- a/src/option.c +++ b/src/option.c @@ -654,7 +654,7 @@ static char *canonicalise_opt(char *s) return 0; if (strlen(s) == 0) - return ""; + return opt_string_alloc(""); unhide_metas(s); if (!(ret = canonicalise(s, &nomem)) && nomem)