diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:10:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:10:35 -0600 |
commit | e814f226d6aa6c1700706bb8db9c190b8244eee5 (patch) | |
tree | 43d0dfba6c451cf16eef42251d776dc4e14cbec6 /nuttx/libc | |
parent | f28eff61aeb62c867249c8cb21162dbd3c60cc37 (diff) | |
download | nuttx-e814f226d6aa6c1700706bb8db9c190b8244eee5.tar.gz nuttx-e814f226d6aa6c1700706bb8db9c190b8244eee5.tar.bz2 nuttx-e814f226d6aa6c1700706bb8db9c190b8244eee5.zip |
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
Diffstat (limited to 'nuttx/libc')
-rw-r--r-- | nuttx/libc/syslog/lib_syslog.c | 2 | ||||
-rw-r--r-- | nuttx/libc/unistd/lib_execl.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/libc/syslog/lib_syslog.c b/nuttx/libc/syslog/lib_syslog.c index 636401046..4ec544329 100644 --- a/nuttx/libc/syslog/lib_syslog.c +++ b/nuttx/libc/syslog/lib_syslog.c @@ -108,7 +108,7 @@ static inline int vsyslog_internal(FAR const char *fmt, va_list ap) /* Get the current time */ - ret = clock_systimespec(&ts); + (void)clock_systimespec(&ts); #endif #if defined(CONFIG_SYSLOG) diff --git a/nuttx/libc/unistd/lib_execl.c b/nuttx/libc/unistd/lib_execl.c index ba5551066..a6b908234 100644 --- a/nuttx/libc/unistd/lib_execl.c +++ b/nuttx/libc/unistd/lib_execl.c @@ -146,6 +146,7 @@ int execl(FAR const char *path, ...) if (++nargs > MAX_EXECL_ARGS) { set_errno(E2BIG); + va_end(ap); return ERROR; } } |