diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-16 19:37:46 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-16 19:37:46 +0100 |
commit | 3373daca2675617117ac60abb7dd3f6511916d2c (patch) | |
tree | 6339eb1d6f6682869dd96e46e392b43dfbe6209c /lib/inifile/iniFile.cpp | |
parent | OBSOLETE'd obsolete functions (diff) | |
parent | Merge pull request #548 from worktycho/documention (diff) | |
download | cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.gz cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.bz2 cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.lz cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.xz cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.zst cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.zip |
Diffstat (limited to 'lib/inifile/iniFile.cpp')
-rw-r--r-- | lib/inifile/iniFile.cpp | 6 |
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); } |