Skip to content

Commit 2958db0

Browse files
committed
[query] Fix uninitialized variable warning in flecs_query_select_w_id
1 parent 28c6cd7 commit 2958db0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

distr/flecs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83528,7 +83528,7 @@ bool flecs_query_select_w_id(
8352883528
ecs_query_and_ctx_t *op_ctx = flecs_op_ctx(ctx, and);
8352983529
ecs_component_record_t *cr = op_ctx->cr;
8353083530
const ecs_table_record_t *tr;
83531-
ecs_table_t *table;
83531+
ecs_table_t *table = NULL;
8353283532

8353383533
if (!redo) {
8353483534
if (!cr || cr->id != id) {

distr/flecs_no_addons.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46002,7 +46002,7 @@ bool flecs_query_select_w_id(
4600246002
ecs_query_and_ctx_t *op_ctx = flecs_op_ctx(ctx, and);
4600346003
ecs_component_record_t *cr = op_ctx->cr;
4600446004
const ecs_table_record_t *tr;
46005-
ecs_table_t *table;
46005+
ecs_table_t *table = NULL;
4600646006

4600746007
if (!redo) {
4600846008
if (!cr || cr->id != id) {

src/query/engine/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ bool flecs_query_select_w_id(
2727
ecs_query_and_ctx_t *op_ctx = flecs_op_ctx(ctx, and);
2828
ecs_component_record_t *cr = op_ctx->cr;
2929
const ecs_table_record_t *tr;
30-
ecs_table_t *table;
30+
ecs_table_t *table = NULL;
3131

3232
if (!redo) {
3333
if (!cr || cr->id != id) {

0 commit comments

Comments
 (0)