From 490f92255c2a428926e11671debeb31131ccd294 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sun, 13 May 2018 11:40:05 +1000 Subject: [PATCH] Initialise error_arg to NULL in criteria_parse --- sway/criteria.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/criteria.c b/sway/criteria.c index 286ccc3b..248260ec 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -420,6 +420,7 @@ static void unescape(char *value) { * populated with an error string. It is up to the caller to free the error. */ struct criteria *criteria_parse(char *raw, char **error_arg) { + *error_arg = NULL; error = NULL; char *head = raw;