diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-13 11:40:05 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-14 11:38:09 +1000 |
commit | 490f92255c2a428926e11671debeb31131ccd294 (patch) | |
tree | 2a14c91fe517c51eadfab16d09b812725fba9d95 | |
parent | Fix double free in criteria (diff) | |
download | sway-490f92255c2a428926e11671debeb31131ccd294.tar.gz sway-490f92255c2a428926e11671debeb31131ccd294.tar.zst sway-490f92255c2a428926e11671debeb31131ccd294.zip |
Initialise error_arg to NULL in criteria_parse
-rw-r--r-- | sway/criteria.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
420 | * populated with an error string. It is up to the caller to free the error. | 420 | * populated with an error string. It is up to the caller to free the error. |
421 | */ | 421 | */ |
422 | struct criteria *criteria_parse(char *raw, char **error_arg) { | 422 | struct criteria *criteria_parse(char *raw, char **error_arg) { |
423 | *error_arg = NULL; | ||
423 | error = NULL; | 424 | error = NULL; |
424 | 425 | ||
425 | char *head = raw; | 426 | char *head = raw; |