diff options
author | Patrick McHardy <kaber@trash.net> | 2014-01-10 09:28:37 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-01-10 09:28:37 +0000 |
commit | 4097ad726fce2398b42795d7b316d39fb8ea6ee5 (patch) | |
tree | 0bf32076d6364fbc0aa433d72d9870b30c08bcda /src/datatype.c | |
parent | aed3e22a4fd7ef4ae7c249cfb9f71387df14ff73 (diff) |
meta: fix crash when parsing unresolvable mark values
*res has undefined contents, set to NULL before invoking the parse function
to make sure the test for != NULL doesn't falsely return true.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/datatype.c')
-rw-r--r-- | src/datatype.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datatype.c b/src/datatype.c index 9910a1b3..86ea80e3 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -643,6 +643,7 @@ static struct error_record *mark_type_parse(const struct expr *sym, } } + *res = NULL; erec = sym->dtype->basetype->parse(sym, res); if (erec != NULL) return erec; |