summaryrefslogtreecommitdiffstats
path: root/firmware/logf.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2014-12-20 13:47:28 +0100
committerThomas Jarosch <tomj@simonv.com>2014-12-20 13:48:43 +0100
commitef1497c3dfca2dacdf6f96d97009fe388f726f4b (patch)
treee81db53ad173919edde25bbd0896ba153ad314b7 /firmware/logf.c
parentc54537a6639bc9ea495fac5e9ecb3ee7a699b484 (diff)
downloadrockbox-ef1497c3dfca2dacdf6f96d97009fe388f726f4b.tar.gz
rockbox-ef1497c3dfca2dacdf6f96d97009fe388f726f4b.tar.bz2
rockbox-ef1497c3dfca2dacdf6f96d97009fe388f726f4b.zip
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
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index ade5458ca9..2fdbfa0f0c 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -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;
}