Initialise error_arg to NULL in criteria_parse

master
Ryan Dwyer 7 years ago
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…
Cancel
Save