[vlc-commits] Add missing va_end (cid #1049747)
Rémi Duraffort
git at videolan.org
Mon Jul 22 20:15:56 CEST 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 22 20:15:35 2013 +0200| [94026a9a5b574e64fad9350ab497c1e457197db0] | committer: Rémi Duraffort
Add missing va_end (cid #1049747)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94026a9a5b574e64fad9350ab497c1e457197db0
---
modules/gui/ncurses.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 27b9f2e..104bbaf 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -689,9 +689,10 @@ static void MainBoxWrite(intf_sys_t *sys, int l, const char *p_fmt, ...)
return;
va_start(vl_args, p_fmt);
- if (vasprintf(&p_buf, p_fmt, vl_args) == -1)
- return;
+ int i_ret = vasprintf(&p_buf, p_fmt, vl_args);
va_end(vl_args);
+ if (i_ret == -1)
+ return;
if (b_selected) attron(A_REVERSE);
mvnprintw(sys->box_y + l - sys->box_start, 1, COLS - 2, "%s", p_buf);
More information about the vlc-commits
mailing list