diff --git a/spa/plugins/support/log-patterns.c b/spa/plugins/support/log-patterns.c index 552c2d7f1..fbb2d2f9a 100644 --- a/spa/plugins/support/log-patterns.c +++ b/spa/plugins/support/log-patterns.c @@ -59,7 +59,7 @@ int support_log_parse_patterns(struct spa_list *patterns, const char *jsonstr) { struct spa_json iter, array, elem; - int res; + int res = 0; spa_json_init(&iter, jsonstr, strlen(jsonstr));