Explorar o código

Fixed "warning: `list' might be used uninitialized in this function" in char/char.c@3032

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

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/07/28
+	* Fixed "warning: `list' might be used uninitialized in this function" in char/char.c@3032 [Toms]
 	* Fixed "uninitialized local variable 'i' used" in skill.c and "warning: suggest explicit braces to avoid ambiguous `else'" in battle.c [Toms]
 	* Fixed "warning: long unsigned int format, unsigned int arg" in parse_login (login_sql\login.c) [Toms]
 	* Fixed sign warnings in login/login.c [Toms]

+ 1 - 1
src/char/char.c

@@ -3029,7 +3029,7 @@ int parse_frommap(int fd) {
 				char type = RFIFOB(fd, 10);
 				char pos = RFIFOB(fd, 11);
 				int size;
-				struct fame_list *list;
+				struct fame_list *list = NULL;
 				RFIFOSKIP(fd,12);
 				
 				switch(type) {