Add missing va_end() call

This commit is contained in:
Tobias Brunner
2013-01-24 19:13:41 +01:00
parent 69c6a60176
commit 24cdf5340e
+2 -1
View File
@@ -214,7 +214,7 @@ METHOD(os_info_t, get_setting, chunk_t,
typedef struct { typedef struct {
/** /**
* implements enumerator_t * implements enumerator_t
*/ */
enumerator_t public; enumerator_t public;
@@ -273,6 +273,7 @@ static bool package_enumerator_enumerate(package_enumerator_t *this, ...)
pos = strchr(pos, '\t'); pos = strchr(pos, '\t');
if (!pos) if (!pos)
{ {
va_end(args);
return FALSE; return FALSE;
} }
name->len = pos++ - name->ptr; name->len = pos++ - name->ptr;