Skip to content

Commit a5f6524

Browse files
committed
initialize some previously uninitialized variables
1 parent 0eade62 commit a5f6524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontends/c/cgram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,9 @@ AddStructBody(Module *C, AST *body)
751751
static AST *
752752
MakeNewStruct(Module *Parent, AST *skind, AST *identifier, AST *body, AST *options)
753753
{
754-
int is_union;
755-
int is_class;
756-
int is_packed;
754+
int is_union = 0;
755+
int is_class = 0;
756+
int is_packed = 0;
757757
const char *name;
758758
const char *classname;
759759
char *typname;

0 commit comments

Comments
 (0)