Add missing va_end() call when the log is full

No need to go out of memory, too ;)

cppcheck reported:
[rockbox/firmware/logf.c:338]: (error) va_list 'ap' was opened but not closed by va_end().

Change-Id: I00e4c04d7e3d5d1415aa5066487ce1d9209e53aa
This commit is contained in:
Thomas Jarosch 2014-12-20 13:47:28 +01:00
parent c54537a663
commit ef1497c3df
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ void _logdiskf(const char* file, const char level, const char *fmt, ...)
{
strcpy(&logdiskfbuffer[logdiskfindex-8], "LOGFULL");
logdiskfindex=MAX_LOGDISKF_SIZE;
va_end(ap);
return;
}