Skip to content

Commit

Permalink
style(pandagl): clear uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Dec 22, 2024
1 parent 071a018 commit 5afe5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pandagl/src/text/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ void pd_text_set_insert_position(pd_text_t *text, int line_num, int col)
int pd_text_set_insert_pixel_position(pd_text_t *text, int x, int y)
{
pd_text_line_t *line;
int i, pixel_pos, ins_x, ins_y;
int i, pixel_pos, ins_x, ins_y = 0;

pixel_pos = text->offset_y;
for (i = 0; i < text->lines_length; ++i) {
Expand Down

0 comments on commit 5afe5d2

Please sign in to comment.