Browse Source

memset AudecInfo to 0 before filling it in

master
Alexandros Theodotou 2 years ago
parent
commit
9f7e7016d1
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 1
      .builds/fedora.yml
  2. 1
      src/ad_plugin.c

1
.builds/fedora.yml

@ -21,6 +21,7 @@ tasks: @@ -21,6 +21,7 @@ tasks:
- test: |
cd libaudec
ninja -C build test
../meson/meson.py test -C build --wrap="valgrind --error-exitcode=1"
- install: |
cd libaudec
DESTDIR=/tmp ninja -C build install

1
src/ad_plugin.c

@ -145,6 +145,7 @@ audec_info ( @@ -145,6 +145,7 @@ audec_info (
AudecHandle * handle,
AudecInfo * nfo)
{
memset (nfo, 0, sizeof (AudecInfo));
adecoder * decoder = (adecoder *) handle;
if (!decoder)
return -1;

Loading…
Cancel
Save