From ad9ea188764830dad666490867c07a9891b7e854 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 14 Dec 2014 14:52:25 +0000 Subject: CrashDumper: changed warning lavel to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/upload.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/CrashDumper/src/upload.cpp') diff --git a/plugins/CrashDumper/src/upload.cpp b/plugins/CrashDumper/src/upload.cpp index fccdc858ce..f3a70a2cae 100644 --- a/plugins/CrashDumper/src/upload.cpp +++ b/plugins/CrashDumper/src/upload.cpp @@ -42,7 +42,8 @@ void GetLoginStr(char* user, size_t szuser, char* pass) if (db_get_s(NULL, PluginName, "Username", &dbv) == 0) { strncpy_s(user, szuser, dbv.pszVal, _TRUNCATE); db_free(&dbv); - } else + } + else user[0] = 0; if (db_get_s(NULL, PluginName, "Password", &dbv) == 0) { @@ -56,7 +57,8 @@ void GetLoginStr(char* user, size_t szuser, char* pass) arrayToHex(hash, sizeof(hash), pass); db_free(&dbv); - } else + } + else pass[0] = 0; } -- cgit v1.2.3