From 39855d11e453ae163ae63d9cfa008582d27059e3 Mon Sep 17 00:00:00 2001 From: toms Date: Fri, 28 Jul 2006 11:17:01 +0000 Subject: Fixed "warning: `list' might be used uninitialized in this function" in char/char.c@3032 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7944 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/char/char.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 81c0b6c40..7ebc63120 100644 --- a/Changelog-Trunk.txt +++ b/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] diff --git a/src/char/char.c b/src/char/char.c index a062f761f..e6becbd5d 100644 --- a/src/char/char.c +++ b/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) { -- cgit v1.2.3-70-g09d2