diff options
author | rubidium <rubidium@openttd.org> | 2013-11-23 13:15:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-23 13:15:07 +0000 |
commit | 0e9c9921040a1d0e2aa4b820b20535f40a0d75a3 (patch) | |
tree | 6dd17568acbfb75610e9b4e248436426ead79e89 /src/ini.cpp | |
parent | b3e93d65208f74802595b12e682d98a4d534a328 (diff) | |
download | openttd-0e9c9921040a1d0e2aa4b820b20535f40a0d75a3.tar.xz |
(svn r26058) -Fix: handle the return value of a number of functions better
Diffstat (limited to 'src/ini.cpp')
-rw-r--r-- | src/ini.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index e82daaceb..11f79ed16 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -106,7 +106,9 @@ bool IniFile::SaveToDisk(const char *filename) shfopt.pTo = tfilename; SHFileOperation(&shfopt); #else - rename(file_new, filename); + if (rename(file_new, filename) < 0) { + DEBUG(misc, 0, "Renaming %s to %s failed; configuration not saved", file_new, filename); + } #endif return true; |