diff options
author | Haru <haru@dotalux.com> | 2014-12-17 02:09:33 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-12-17 02:09:33 +0100 |
commit | 68f0fee76a73612263984da5d9de1e32b7ffe7da (patch) | |
tree | e481f8b65127b1ceada36ea15eaf2707a8c1c93f /src/map/clif.c | |
parent | 251f5d933c49fc2dcb52cd76a2570cae4cb827fe (diff) | |
download | hercules-68f0fee76a73612263984da5d9de1e32b7ffe7da.tar.gz hercules-68f0fee76a73612263984da5d9de1e32b7ffe7da.tar.bz2 hercules-68f0fee76a73612263984da5d9de1e32b7ffe7da.tar.xz hercules-68f0fee76a73612263984da5d9de1e32b7ffe7da.zip |
Corrected a trivial null pointer case detected by Xcode
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3515bb806..eff41422c 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17749,7 +17749,10 @@ void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd) { void clif_maptypeproperty2(struct block_list *bl,enum send_target t) { #if PACKETVER >= 20121010 struct packet_maptypeproperty2 p; - struct map_session_data *sd = BL_CAST(BL_PC, bl); + struct map_session_data *sd = NULL; + nullpo_retv(bl); + + sd = BL_CAST(BL_PC, bl); p.PacketType = maptypeproperty2Type; p.type = 0x28; |