summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.txt1
-rw-r--r--src/login/login.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 400d37918..e5b84c77d 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,6 @@
Date Added
11/14
+ * Initialized password variable in login.c. [Valaris]
* Added zeny_from_mobs option. [Valaris]
* Corrected the file type attribute on most of the files in three which fixes the
newline issues between linux and dos [MouseJstr]
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);