From 58726366cecccc4cb44ec4978dc2620b54c5fb4f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Jun 2015 22:16:46 +0300 Subject: Add missing checks to pincode.c --- src/char/pincode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/char/pincode.c b/src/char/pincode.c index 43958af8a..5085349cc 100644 --- a/src/char/pincode.c +++ b/src/char/pincode.c @@ -21,9 +21,10 @@ struct pincode_interface pincode_s; void pincode_handle (int fd, struct char_session_data* sd) { - struct online_char_data* character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id); + struct online_char_data* character; nullpo_retv(sd); + character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id); if( character && character->pincode_enable > pincode->charselect ){ character->pincode_enable = pincode->charselect * 2; }else{ -- cgit v1.2.3-60-g2f50