aboutsummaryrefslogtreecommitdiffstats
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-13 11:40:05 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-14 11:38:09 +1000
commit490f92255c2a428926e11671debeb31131ccd294 (patch)
tree2a14c91fe517c51eadfab16d09b812725fba9d95 /sway/criteria.c
parentFix double free in criteria (diff)
downloadsway-490f92255c2a428926e11671debeb31131ccd294.tar.gz
sway-490f92255c2a428926e11671debeb31131ccd294.tar.zst
sway-490f92255c2a428926e11671debeb31131ccd294.zip
Initialise error_arg to NULL in criteria_parse
Diffstat (limited to 'sway/criteria.c')
-rw-r--r--sway/criteria.c1
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 */
422struct criteria *criteria_parse(char *raw, char **error_arg) { 422struct 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;