diff --git a/lib/src/query.c b/lib/src/query.c index 14ab91e4..8f56918a 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -467,7 +467,7 @@ static TSQuantifier quantifier_mul( TSQuantifier left, TSQuantifier right ) { - TSQuantifier result; + TSQuantifier result = Zero; // initialized to make compiler happy, but all cases should be covered below! switch (left) { case Zero: @@ -527,7 +527,7 @@ static TSQuantifier quantifier_join( TSQuantifier left, TSQuantifier right ) { - TSQuantifier result; + TSQuantifier result = Zero; // initialized to make compiler happy, but all cases should be covered below! switch (left) { case Zero: @@ -599,7 +599,7 @@ static TSQuantifier quantifier_add( TSQuantifier left, TSQuantifier right ) { - TSQuantifier result; + TSQuantifier result = Zero; // initialized to make compiler happy, but all cases should be covered below! switch (left) { case Zero: