summaryrefslogtreecommitdiffstats
path: root/lib/inifile
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-16 08:34:10 +0100
committermadmaxoft <github@xoft.cz>2014-01-16 08:34:10 +0100
commitba49a32c3a5b10bfe1ae90edd08f06acad0389fd (patch)
tree88454b07729b624e96946d0825f3d7bbb1b9e572 /lib/inifile
parentMerge pull request #545 from mc-server/VarArgs (diff)
downloadcuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar
cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.gz
cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.bz2
cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.lz
cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.xz
cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.zst
cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.zip
Diffstat (limited to '')
-rw-r--r--lib/inifile/iniFile.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp
index c118eecaa..afa1c110d 100644
--- a/lib/inifile/iniFile.cpp
+++ b/lib/inifile/iniFile.cpp
@@ -446,12 +446,10 @@ bool cIniFile::SetValueF(const AString & a_KeyName, const AString & a_ValueName,
bool cIniFile::SetValueV(const AString & a_KeyName, const AString & a_ValueName, const char * a_Format, ...)
{
- va_list args, argsCopy;
+ va_list args;
va_start(args, a_Format);
- va_start(argsCopy, a_Format);
AString Data;
- AppendVPrintf(Data, a_Format, args, argsCopy);
- va_end(argsCopy);
+ AppendVPrintf(Data, a_Format, args);
va_end(args);
return SetValue(a_KeyName, a_ValueName, Data);
}