projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
fix decl_type
[m6w6/ext-psi]
/
src
/
parser.h
diff --git
a/src/parser.h
b/src/parser.h
index a39d15ecdd0255f72713f12fbfeea0fe80312ba0..62f5e31eb0bb2f79bedb4d94540ba9e309cc368c 100644
(file)
--- a/
src/parser.h
+++ b/
src/parser.h
@@
-29,10
+29,9
@@
typedef struct decl_type {
} decl_type;
static inline decl_type *init_decl_type(token_t type, char *name) {
- decl_type *t =
malloc(
sizeof(*t));
+ decl_type *t =
calloc(1,
sizeof(*t));
t->type = type;
t->name = strdup(name);
- t->real = NULL;
return t;
}