Commit 9ed7eb3a authored by Rémi Duraffort's avatar Rémi Duraffort

Add missing va_end (cid #1049746)

parent 622ac6fc
...@@ -599,10 +599,12 @@ static void mvnprintw(int y, int x, int w, const char *p_fmt, ...) ...@@ -599,10 +599,12 @@ static void mvnprintw(int y, int x, int w, const char *p_fmt, ...)
return; return;
va_start(vl_args, p_fmt); va_start(vl_args, p_fmt);
if (vasprintf(&p_buf, p_fmt, vl_args) == -1) int i_ret = vasprintf(&p_buf, p_fmt, vl_args);
return;
va_end(vl_args); va_end(vl_args);
if (i_ret == -1)
return;
len = strlen(p_buf); len = strlen(p_buf);
wchar_t wide[len + 1]; wchar_t wide[len + 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment