summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 17:11:10 +0000
committervalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 17:11:10 +0000
commitf9db46c8fa41c2cfe599ced9787263ff22e6cb14 (patch)
treee0831cee79c4d6cd2b072f09e5929ec44697b426 /src
parent9b255549bb0d8e5c499a88564d1f91ea400a2cde (diff)
downloadhercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.tar.gz
hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.tar.bz2
hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.tar.xz
hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.zip
Initialized password variable in login.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@176 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c
index c5921902a..b28a48a51 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -3059,7 +3059,7 @@ int parse_login(int fd) {
} else {
struct login_session_data *ld = session[fd]->session_data;
if (RFIFOW(fd,2) == 0) { // non encrypted password
- unsigned char* password;
+ unsigned char* password="";
memcpy(password, RFIFOP(fd,4), 24);
password[24] = '\0';
remove_control_chars(password);