From 99a826cd901767bb1d29293a941bf994f0eaf4b1 Mon Sep 17 00:00:00 2001 From: tegzed Date: Sun, 9 Oct 2011 16:21:01 +0000 Subject: Fix:core:avoid usage of uninitialized hashtable in get_attr_var() git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4838 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'navit/navit.c') diff --git a/navit/navit.c b/navit/navit.c index 5c0612d22..baddb777a 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -988,6 +988,7 @@ navit_cmd_get_attr_var(struct navit *this, char *function, struct attr **in, str struct attr **list = g_new0(struct attr *,2); if(!cmd_int_var_hash) { struct attr*val = g_new0(struct attr,1); + cmd_attr_var_hash = g_hash_table_new(g_str_hash, g_str_equal); val->type = attr_type_item_begin; val->u.item = NULL; list[0] = val; -- cgit v1.2.1