Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Smart-WiFly-WebServer SignalGenerator WattEye X10Svr
Diff: IniManager.cpp
- Revision:
- 28:4e7fc08a0fea
- Parent:
- 27:611ffb74fd38
- Parent:
- 26:e8d7b09a77a3
--- a/IniManager.cpp Sun Nov 18 04:06:59 2018 +0000
+++ b/IniManager.cpp Thu Jun 11 02:09:41 2020 +0000
@@ -202,6 +202,7 @@
INI_Return retVal;
bool found = false;
+ retVal = RetXLate[INI_SECTION_NOT_FOUND][version]; // assume we won't find the section, until we do.
if (!iniFile)
return RetXLate[INI_NO_FILE_SPEC][version];
CleanUp();
@@ -214,7 +215,6 @@
} else {
char buf[INTERNAL_BUF_SIZE];
bool inSection = (section == NULL) ? true : false;
- retVal = RetXLate[INI_SECTION_NOT_FOUND][version]; // assume we won't find the section, until we do.
while(fgets(buf, sizeof(buf), fp)) {
int x = strlen(buf) - 1; // remove trailing \r\n combinations
while (x >= 0 && buf[x] < ' ')