From 074f9f4a21c1fb3c74524a227b38baa135731cb1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Jul 2012 21:04:13 +0000 Subject: Jazzy, enjoy :) git-svn-id: http://svn.miranda-ng.org/main/trunk@1220 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3