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:
- 2:c63a794c1fee
- Parent:
- 1:1e2ee9bbee40
- Child:
- 3:64fcaf06b012
diff -r 1e2ee9bbee40 -r c63a794c1fee IniManager.cpp
--- a/IniManager.cpp Sun Sep 01 19:52:53 2013 +0000
+++ b/IniManager.cpp Thu Sep 05 22:50:39 2013 +0000
@@ -107,10 +107,11 @@
FILE * repair = fopen(newFile, "rt");
if (repair) {
+ int i;
+
// helps recover if the system crashed before it could swap in the new file
INFO("*** repairing\r\n");
fclose(repair);
- int i;
i = remove(bakFile); // remove an old .bak
INFO("remove(%s) returned %d\r\n", bakFile, i);
i = Rename(iniFile, bakFile); // move the existing .ini to .bak