summaryrefslogtreecommitdiff
path: root/navit/navit.c
diff options
context:
space:
mode:
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-10-09 16:21:01 +0000
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-10-09 16:21:01 +0000
commit99a826cd901767bb1d29293a941bf994f0eaf4b1 (patch)
tree63050a10fb94624ecf2807ee2335d26ef61811d7 /navit/navit.c
parentbfd37b783ee1266fafb5924fd5146c59c461b2ec (diff)
downloadnavit-99a826cd901767bb1d29293a941bf994f0eaf4b1.tar.gz
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
Diffstat (limited to 'navit/navit.c')
-rw-r--r--navit/navit.c1
1 files changed, 1 insertions, 0 deletions
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;