diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 18:08:49 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 18:08:49 -0600 |
commit | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (patch) | |
tree | bd0b760c6467a0b528b7b29480f944c99c186693 /nuttx/libc/audio | |
parent | 07d355e8f77afbc04ea94089071b0154e747acec (diff) | |
download | px4-nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.tar.gz px4-nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.tar.bz2 px4-nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.zip |
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'nuttx/libc/audio')
-rw-r--r-- | nuttx/libc/audio/lib_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/libc/audio/lib_buffer.c b/nuttx/libc/audio/lib_buffer.c index 83fda877e..cf518de16 100644 --- a/nuttx/libc/audio/lib_buffer.c +++ b/nuttx/libc/audio/lib_buffer.c @@ -138,7 +138,7 @@ int apb_alloc(FAR struct audio_buf_desc_s *bufdesc) { /* Populate the buffer contents */ - memset(pBuf, bufsize, 0); + memset(pBuf, 0, bufsize); pBuf->i.channels = 1; pBuf->crefs = 1; pBuf->nmaxbytes = bufdesc->numbytes; |