Explorar o código

- Fixed a pair of "Conditional jump or move depends on uninitialised value(s)", thanks Valgrind!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5747 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex %!s(int64=19) %!d(string=hai) anos
pai
achega
cafe894ecc
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/map/clif.c

+ 2 - 0
src/map/clif.c

@@ -5760,6 +5760,7 @@ int clif_send0199(int map,int type)
 	struct block_list bl;
 	unsigned char buf[16];
 
+	bl.type = BL_NUL;
 	bl.m = map;
 	WBUFW(buf,0)=0x199;
 	WBUFW(buf,2)=type;
@@ -7205,6 +7206,7 @@ int clif_changemapcell(int m,int x,int y,int cell_type,int type)
 	struct block_list bl;
 	unsigned char buf[32];
 
+	bl.type = BL_NUL;
 	bl.m = m;
 	bl.x = x;
 	bl.y = y;