From e642dc4aa08a7276a5c92ca564f80ded5f0d272f Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 14 Aug 2013 18:58:32 -0300 Subject: Fixed crash uncovered by the ab1fad052cd771e183f496f5db922fa03a13edea update Special Thanks to Haruna Signed-off-by: shennetsind --- src/map/itemdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index e2d2621f8..431ee3135 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -937,6 +937,7 @@ void itemdb_read_packages(void) { must[i] = 0; random[i] = 0; rgroup[i] = 0; + rgroups[i] = NULL; } /* validate tree, drop poisonous fruits! */ @@ -1031,8 +1032,8 @@ void itemdb_read_packages(void) { c = 0; while( (it = config_setting_get_elem(itg,c++)) ) { - int icount = 1, expire = 0, rate = 10000; - bool announce = false, named = false, gid = 0; + int icount = 1, expire = 0, rate = 10000, gid = 0; + bool announce = false, named = false; itname = config_setting_name(it); -- cgit v1.2.3-60-g2f50