summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-05 12:40:18 -0300
committershennetsind <ind@henn.et>2013-04-05 12:40:18 -0300
commit15c812751a755108e119de52a5f756cbeba60fc8 (patch)
treefa55868bebd6c20d20f3e44683a2c42dc8f597ba
parent0d3fca9d6822c77f89d63c0b871d9019ecc07f64 (diff)
downloadhercules-15c812751a755108e119de52a5f756cbeba60fc8.tar.gz
hercules-15c812751a755108e119de52a5f756cbeba60fc8.tar.bz2
hercules-15c812751a755108e119de52a5f756cbeba60fc8.tar.xz
hercules-15c812751a755108e119de52a5f756cbeba60fc8.zip
Fixed compiler warning
Special Thanks to Zopokx for pointing it out Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/map.c4
1 files changed, 2 insertions, 2 deletions
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);
}