diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-07 23:12:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-07 23:12:05 +0300 |
commit | 6079aba813fbeaffb174791cda51ea588e5cca20 (patch) | |
tree | d686b683053d57e4925d6ba17f0ae26fb6343c43 /src/lookup.c | |
parent | 4b0e477181f51c12f62236ec91f4bb714125393d (diff) | |
download | grecs-6079aba813fbeaffb174791cda51ea588e5cca20.tar.gz grecs-6079aba813fbeaffb174791cda51ea588e5cca20.tar.bz2 |
Bugfixes.
* src/grecs.h (GRECS_MULT): New flag.
* src/lookup.c (parse_label): Allocate array elements.
* src/tree.c (grecs_process_ident): Store string duplicates
in lists.
(reduceproc): Ignore keywords marked with GRECS_MULT.
Diffstat (limited to 'src/lookup.c')
-rw-r--r-- | src/lookup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lookup.c b/src/lookup.c index 32674ad..b723283 100644 --- a/src/lookup.c +++ b/src/lookup.c @@ -164,6 +164,8 @@ parse_label(const char *str) val->v.arg.v = grecs_calloc(ws.ws_wordc, sizeof(val->v.arg.v[0])); for (i = 0; i < ws.ws_wordc; i++) { + val->v.arg.v[i] = + grecs_malloc(sizeof(val->v.arg.v[0])); val->v.arg.v[i]->type = GRECS_TYPE_STRING; val->v.arg.v[i]->v.string = ws.ws_wordv[i]; } |