From caf47d31d00a33cd0787120242c6173798ac101f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 19 Jul 2013 13:32:47 +0200 Subject: [PATCH] fix issues --- parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser.c b/parser.c index 4fa1d3f..514a82f 100644 --- a/parser.c +++ b/parser.c @@ -261,10 +261,10 @@ static char *parser_strdup(const char *str) static ast_value* parser_const_string(parser_t *parser, const char *str, bool dotranslate) { - size_t hash = util_hthash(parser->ht_imm_string, str); - ast_value *out; - hash_table_t *ht_string = + ht ht_string = dotranslate ? parser->ht_imm_string_dotranslate : parser->ht_imm_string; + size_t hash = util_hthash(ht_string, str); + ast_value *out; if ( (out = (ast_value*)util_htgeth(ht_string, str, hash)) ) return out; -- 2.39.2