diff options
Diffstat (limited to 'hl/src/H5LT.c')
-rw-r--r-- | hl/src/H5LT.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c index 0a694d9..08ac5b8 100644 --- a/hl/src/H5LT.c +++ b/hl/src/H5LT.c @@ -16,6 +16,10 @@ #include <string.h> #include <stdlib.h> +/* For Lex and Yacc */ +int input_len; +char *myinput; + /*------------------------------------------------------------------------- * * internal functions @@ -1997,14 +2001,15 @@ out: */ hid_t H5LTtext_to_dtype(const char *text) { - + extern int yyparse(void); hid_t type_id; hsize_t i; input_len = strlen(text); myinput = strdup(text); - type_id = yyparse(); + if((type_id = yyparse())<0) + goto out; free(myinput); input_len = 0; |