file_systems/QueryParser.h: Fix -Werror=maybe-uninitialized
Fix fPosition and fTerm not being initialized when expr is NULL at line 1162. Pointed out by GCC14. Change-Id: If883ac0cc32e3418d0e3b49b42012efd861d65f4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7641 Haiku-Format: Haiku-format Bot <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0ec6e1ceb8
commit
ddbb992956
@@ -1158,6 +1158,9 @@ Equation<QueryPolicy>::PrintToStream()
|
|||||||
|
|
||||||
template<typename QueryPolicy>
|
template<typename QueryPolicy>
|
||||||
Expression<QueryPolicy>::Expression(char* expr)
|
Expression<QueryPolicy>::Expression(char* expr)
|
||||||
|
:
|
||||||
|
fPosition(NULL),
|
||||||
|
fTerm(NULL)
|
||||||
{
|
{
|
||||||
if (expr == NULL)
|
if (expr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user