From 6a987e31b7f6197b80420f6168b24a038f7c3a9f Mon Sep 17 00:00:00 2001 From: skidau Date: Sun, 19 Apr 2015 09:54:14 +0000 Subject: [PATCH] Fixed the crash that would occur if vbam.ini and vbam.cfg are not found --- src/common/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ConfigManager.cpp b/src/common/ConfigManager.cpp index 9664fe22..023d726c 100644 --- a/src/common/ConfigManager.cpp +++ b/src/common/ConfigManager.cpp @@ -416,7 +416,7 @@ void SetHome(char *_arg0) void OpenPreferences(const char *name) { - if (!preferences) + if (!preferences && name) preferences = iniparser_load(name); }