summaryrefslogtreecommitdiff
path: root/src/login_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/login_sql')
-rw-r--r--src/login_sql/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index 7c67b0174..ff9e4706a 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -166,7 +166,8 @@ int is_user_online(int account_id) {
return 0;
p = (int*)numdb_search(online_db, account_id);
- printf("Acccount %d\n",*p);
+ if (p != NULL)
+ printf("Acccount %d\n",*p);
return (p != NULL);
}