alsa-utils/axfer/test
Takashi Sakamoto 0b07c560f7 axfer/test: fix uninitialized warning
This commit fixes uninitialized return value from a call of test_mux() and
text_demux() to suppress warnings below:

$ make check
...
gcc -DHAVE_CONFIG_H -I. -I../../include     -O2 -Wall -pipe -g -MT mapper-test.o -MD -MP -MF .deps/mapper-test.Tpo -c -o mapper-test.o mapper-test.c
mapper-test.c: In function ‘test_mapper’:
mapper-test.c:241:9: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  return err;
         ^~~
mapper-test.c:231:5: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (err < 0)
     ^

Fixes: 39d1ab8a0c: ('axfer: add a unit test for mapper interface')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2019-05-07 08:33:01 +02:00
..
container-test.c axfer: add unit test for container interface 2018-11-13 12:04:25 +01:00
generator.c axfer: add unit test for container interface 2018-11-13 12:04:25 +01:00
generator.h axfer: add unit test for container interface 2018-11-13 12:04:25 +01:00
Makefile.am axfer: add missing header file of unit test to distribution 2019-01-29 16:48:00 +01:00
mapper-test.c axfer/test: fix uninitialized warning 2019-05-07 08:33:01 +02:00