diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-08 23:58:34 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-08 23:59:48 +0200 |
commit | 2a90263421ff14eaf246998cc71551583a140f8a (patch) | |
tree | b6d50f7c7d8163e5417f3ec97205f2975c66f762 | |
parent | convert dtrans to gbuilb (diff) | |
download | core-2a90263421ff14eaf246998cc71551583a140f8a.tar.gz core-2a90263421ff14eaf246998cc71551583a140f8a.zip |
Add 2 lacking va_end.
-rw-r--r-- | i18npool/source/calendar/calendar_gregorian.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/menu/mnumgr.cxx | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx index 5cd86d7857db..7c1e15cc995c 100644 --- a/i18npool/source/calendar/calendar_gregorian.cxx +++ b/i18npool/source/calendar/calendar_gregorian.cxx @@ -61,6 +61,7 @@ static void debug_cal_msg(const char *pat, ...) va_list ap; va_start(ap, pat); vfprintf(stderr, pat, ap); + va_end(ap); } #if erDUMP_ICU_CALENDAR diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx index b82aeeb6bd6f..793c122394d0 100644 --- a/sfx2/source/menu/mnumgr.cxx +++ b/sfx2/source/menu/mnumgr.cxx @@ -442,8 +442,10 @@ sal_uInt16 SfxPopupMenuManager::Execute( const Point& rPoint, Window* pWindow, c va_list pArgs; va_start(pArgs, pArg1); + sal_uInt16 nRet = Execute( rPoint, pWindow, pArgs, pArg1 ); + va_end(pArgs); - return (Execute( rPoint, pWindow, pArgs, pArg1 )); + return (nRet); } //------------------------------------------------------------------------- |