aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-03-26 15:11:32 +0100
committerArisotura <thetotalworm@gmail.com>2019-03-26 15:11:32 +0100
commit5941d57236382619f08a9c5d0bd9941ea73d3c2b (patch)
treeb8cf0c498135a94df41bbf259539d88168baa503 /src
parent785716ac41fb65cb97e936d45b5b9620fb204c38 (diff)
extra safety for the case of an empty platform config file
Diffstat (limited to 'src')
-rw-r--r--src/Config.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Config.cpp b/src/Config.cpp
index 477ee1e..d9dfc92 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -53,6 +53,7 @@ void Load()
{
if (c > 0) break;
entry = &PlatformConfigFile[0];
+ if (!entry->Value) break;
c++;
}
@@ -87,6 +88,7 @@ void Load()
{
if (c > 0) break;
entry = &PlatformConfigFile[0];
+ if (!entry->Value) break;
c++;
}
@@ -139,6 +141,7 @@ void Save()
{
if (c > 0) break;
entry = &PlatformConfigFile[0];
+ if (!entry->Value) break;
c++;
}