aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-05-13 11:40:05 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-05-14 11:38:09 +1000
commit490f92255c2a428926e11671debeb31131ccd294 (patch)
tree2a14c91fe517c51eadfab16d09b812725fba9d95
parent39007fc30fa3619f14087d138acb8a49114631c3 (diff)
Initialise error_arg to NULL in criteria_parse
-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) {
* 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;