aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <machiavelli.trinity@gmail.com>2013-09-12 16:42:22 +0100
committerMachiavelli <machiavelli.trinity@gmail.com>2013-09-12 16:42:22 +0100
commitbd8d0cfbce9a38e0f2fc8b6903434c3553faf143 (patch)
treec59b229a2fc99f2676d8d0bd802a0a3c41a00c2c /src
parent4df862dd4cc6408fb95392f5fa9faeb1511d12cf (diff)
Fix build
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_account.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_account.cpp b/src/server/scripts/Commands/cs_account.cpp
index cad45f828d8..6fcf9dfdbec 100644
--- a/src/server/scripts/Commands/cs_account.cpp
+++ b/src/server/scripts/Commands/cs_account.cpp
@@ -453,9 +453,9 @@ public:
char* oldPassword = strtok((char*)args, " "); // This extracts [$oldpassword]
char* newPassword = strtok(NULL, " "); // This extracts [$newpassword]
char* passwordConfirmation = strtok(NULL, " "); // This extracts [$newpasswordconfirmation]
- char* emailConfirmation; // This defines the emailConfirmation variable, which is optional depending on sec type.
+ char* emailConfirmation = NULL; // This defines the emailConfirmation variable, which is optional depending on sec type.
if (!(emailConfirmation = strtok(NULL, " "))) // This extracts [$emailconfirmation]. If it doesn't exist, however...
- emailConfirmation = ""; // ... it's simply "" for emailConfirmation.
+ emailConfirmation = '\0'; // ... it's simply "" for emailConfirmation.
//Is any of those variables missing for any reason ? We return false.
if (!oldPassword || !newPassword || !passwordConfirmation)