aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2013-06-02 05:21:24 -0700
committerWladimir J. van der Laan <[email protected]>2013-06-02 05:21:24 -0700
commit50b4086a4a4fbba8241c4b8807870d7b44c109fe (patch)
treefe299488d21bae0e041e32319c1ff8c825f0d446 /src/util.cpp
parentMerge pull request #2721 from laanwj/2013_05_qt5 (diff)
parentremove GetBoolArg() fDefault parameter defaulting to false (diff)
downloaddiscoin-50b4086a4a4fbba8241c4b8807870d7b44c109fe.tar.xz
discoin-50b4086a4a4fbba8241c4b8807870d7b44c109fe.zip
Merge pull request #2588 from Diapolo/GetBoolArg
remove GetBoolArg() fDefault parameter defaulting to false
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 4c9b897f5..0bd296023 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -518,7 +518,7 @@ static void InterpretNegativeSetting(string name, map<string, string>& mapSettin
positive.append(name.begin()+3, name.end());
if (mapSettingsRet.count(positive) == 0)
{
- bool value = !GetBoolArg(name);
+ bool value = !GetBoolArg(name, false);
mapSettingsRet[positive] = (value ? "1" : "0");
}
}
@@ -1171,7 +1171,6 @@ bool TruncateFile(FILE *file, unsigned int length) {
#endif
}
-
// this function tries to raise the file descriptor limit to the requested number.
// It returns the actual file descriptor limit (which may be more or less than nMinFD)
int RaiseFileDescriptorLimit(int nMinFD) {
@@ -1257,8 +1256,8 @@ void ShrinkDebugFile()
fclose(file);
}
}
- else if(file != NULL)
- fclose(file);
+ else if (file != NULL)
+ fclose(file);
}