Pārlūkot izejas kodu

Initialized password variable in login.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@176 54d463be-8e91-2dee-dedb-b68131a5f0ec
valaris 20 gadi atpakaļ
vecāks
revīzija
4351885b80
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 0
      Changelog.txt
  2. 1 1
      src/login/login.c

+ 1 - 0
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]

+ 1 - 1
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);