summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-27 21:04:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-27 21:04:13 +0000
commit074f9f4a21c1fb3c74524a227b38baa135731cb1 (patch)
treeddf53288fda8b5067a64230a7e37ee9baba52f0d /src
parentc0b6677b36a9bc84c1fac3e057d68915a077b7bf (diff)
Jazzy, enjoy :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1220 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/database/database.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index 05c44ff19d..71ad7102ce 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -132,10 +132,8 @@ static void getDefaultProfile(TCHAR *szProfile, size_t cch, TCHAR *profiledir)
void getProfileCmdLine(TCHAR *szProfile, size_t cch, TCHAR *profiledir)
{
LPCTSTR ptszProfileName = CmdLine_GetOption( _T("profile"));
- if (ptszProfileName == NULL) {
- szProfile[0] = 0;
+ if (ptszProfileName == NULL)
return;
- }
TCHAR buf[MAX_PATH];
_tcsncpy(buf, ptszProfileName, SIZEOF(buf));