mirror of
https://github.com/danog/ir.git
synced 2024-12-02 09:38:29 +01:00
Fixed access to initialized varaible
This commit is contained in:
parent
8088643c15
commit
7f4ba5dad4
2
ir.g
2
ir.g
@ -245,7 +245,7 @@ ir_sym_data(ir_loader *loader):
|
|||||||
{const char *name;}
|
{const char *name;}
|
||||||
{size_t name_len;}
|
{size_t name_len;}
|
||||||
{char buf[256];}
|
{char buf[256];}
|
||||||
{uintptr_t offset;}
|
{uintptr_t offset = 0;}
|
||||||
type(&t)
|
type(&t)
|
||||||
(
|
(
|
||||||
"sym" "(" ID(&name, &name_len) ")"
|
"sym" "(" ID(&name, &name_len) ")"
|
||||||
|
@ -1048,7 +1048,7 @@ static int parse_ir_sym_data(int sym, ir_loader *loader) {
|
|||||||
const char *name;
|
const char *name;
|
||||||
size_t name_len;
|
size_t name_len;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
uintptr_t offset;
|
uintptr_t offset = 0;
|
||||||
sym = parse_type(sym, &t);
|
sym = parse_type(sym, &t);
|
||||||
if (sym == YY_SYM) {
|
if (sym == YY_SYM) {
|
||||||
sym = get_sym();
|
sym = get_sym();
|
||||||
|
Loading…
Reference in New Issue
Block a user