From 15c812751a755108e119de52a5f756cbeba60fc8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 5 Apr 2013 12:40:18 -0300 Subject: Fixed compiler warning Special Thanks to Zopokx for pointing it out Signed-off-by: shennetsind --- src/map/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/map.c b/src/map/map.c index eb44ea6ac..656ddb6d0 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3670,7 +3670,7 @@ void map_zone_init(void) { } enum bl_type map_zone_bl_type(const char *entry) { char temp[200], *parse; - enum bl_type bl; + enum bl_type bl = BL_NUL; safestrncpy(temp, entry, 200); parse = strtok(temp,"|"); @@ -3690,7 +3690,7 @@ enum bl_type map_zone_bl_type(const char *entry) { else if( strcmpi(parse,"all") == 0 ) bl |= BL_ALL; else if( strcmpi(parse,"none") == 0 ) { - bl = 0; + bl = BL_NUL; } else { ShowError("map_zone_db: '%s' unknown type, skipping...\n",parse); } -- cgit v1.2.3-60-g2f50