Skip to content

Commit 3c16945

Browse files
committed
[query] Fix uninitialized variable warning in flecs_query_select_w_id
1 parent fa0d142 commit 3c16945

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
@@ -83209,7 +83209,7 @@ bool flecs_query_select_w_id(
8320983209
ecs_query_and_ctx_t *op_ctx = flecs_op_ctx(ctx, and);
8321083210
ecs_component_record_t *cr = op_ctx->cr;
8321183211
const ecs_table_record_t *tr;
83212-
ecs_table_t *table;
83212+
ecs_table_t *table = NULL;
8321383213

8321483214
if (!redo) {
8321583215
if (!cr || cr->id != id) {

distr/flecs_no_addons.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45815,7 +45815,7 @@ bool flecs_query_select_w_id(
4581545815
ecs_query_and_ctx_t *op_ctx = flecs_op_ctx(ctx, and);
4581645816
ecs_component_record_t *cr = op_ctx->cr;
4581745817
const ecs_table_record_t *tr;
45818-
ecs_table_t *table;
45818+
ecs_table_t *table = NULL;
4581945819

4582045820
if (!redo) {
4582145821
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)