diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-28 11:17:01 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-28 11:17:01 +0000 |
commit | 39855d11e453ae163ae63d9cfa008582d27059e3 (patch) | |
tree | a2fbfed90332ec9f8495a05e495ff573e4a172d8 | |
parent | 38c37abce31ac6d4adc4ad6dbffe59e1b243f1b5 (diff) | |
download | hercules-39855d11e453ae163ae63d9cfa008582d27059e3.tar.gz hercules-39855d11e453ae163ae63d9cfa008582d27059e3.tar.bz2 hercules-39855d11e453ae163ae63d9cfa008582d27059e3.tar.xz hercules-39855d11e453ae163ae63d9cfa008582d27059e3.zip |
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
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/char/char.c | 2 |
2 files changed, 2 insertions, 1 deletions
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) {
|