summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));