mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Initialise error_arg to NULL in criteria_parse
This commit is contained in:
parent
39007fc30f
commit
490f92255c
|
@ -420,6 +420,7 @@ static void unescape(char *value) {
|
||||||
* populated with an error string. It is up to the caller to free the error.
|
* populated with an error string. It is up to the caller to free the error.
|
||||||
*/
|
*/
|
||||||
struct criteria *criteria_parse(char *raw, char **error_arg) {
|
struct criteria *criteria_parse(char *raw, char **error_arg) {
|
||||||
|
*error_arg = NULL;
|
||||||
error = NULL;
|
error = NULL;
|
||||||
|
|
||||||
char *head = raw;
|
char *head = raw;
|
||||||
|
|
Loading…
Reference in a new issue