Skip to content

Commit

Permalink
style: clear uninitialized warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Dec 22, 2024
1 parent 8dfde9d commit 5a86628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/css/src/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static int css_valdef_parser_commit(css_valdef_parser_t *parser,
css_valdef_sign_t sign)
{
css_valdef_t *parent_valdef;
css_valdef_t *deleted_valdef;
css_valdef_t *deleted_valdef = NULL;
css_valdef_t *child;

// TODO: 处理 && 和 || 混写情况
Expand Down
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 5a86628

Please sign in to comment.