Permalink
Browse files

* Fixed conditionally uninitialized value pointed out by gcc in *getn…

…pcid script command (since r15085).

git-svn-id: http://eathena-project.googlecode.com/svn/trunk@15117 54d463be-8e91-2dee-dedb-b68131a5f0ec
  • Loading branch information...
1 parent 6c9a786 commit 6ead072224ab552f0be05a471f1b11205cbeeed3 ai4rei committed May 20, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 Changelog-Trunk.txt
  2. +1 −1 src/map/script.c
View
@@ -1,6 +1,7 @@
Date Added
2012/05/19
+ * Fixed conditionally uninitialized value pointed out by gcc in *getnpcid script command (since r15085). [Ai4rei]
* Minor swap and bounds-code cleaning in map. [Ai4rei]
* Moved inlined send-packets 0x7f (ZC_NOTIFY_TIME), 0xc2 (ZC_USER_COUNT), 0xd4 (ZC_WHISPER_LIST), 0xca (ZC_PC_PURCHASE_RESULT), 0xcb (ZC_PC_SELL_RESULT), 0x18b (ZC_ACK_REQ_DISCONNECT), 0x1e0 (ZC_ACK_ACCOUNTNAME), 0x207 (ZC_REQ_ADD_FRIENDS), 0x210 (ZC_ACK_PVPPOINT), 0x217 (ZC_BLACKSMITH_RANK), 0x21a (ZC_ALCHEMIST_RANK), 0x226 (ZC_TAEKWON_RANK) and 0x238 (ZC_KILLER_RANK) into their own functions. [Ai4rei]
* Processed some clif.c TODO/FIXME. [Ai4rei]
View
@@ -6345,7 +6345,7 @@ BUILDIN_FUNC(getcharid)
BUILDIN_FUNC(getnpcid)
{
int num = script_getnum(st,2);
- struct npc_data* nd;
+ struct npc_data* nd = NULL;
if( script_hasdata(st,3) )
{// unique npc name

0 comments on commit 6ead072

Please sign in to comment.