]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: Fix uninitialized err in snd_use_case_set()
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Nov 2014 14:25:30 +0000 (15:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Nov 2014 14:32:23 +0000 (15:32 +0100)
commit72c8b07b2a514261c2cb28558307b5fcb017b05e
tree40051fffeb0f2aa07647f2dfd2cdf40da3458e9d
parentb779f6f43204c43f231b77858ba023a16de54568
ucm: Fix uninitialized err in snd_use_case_set()

The compiler warns like:
  main.c:1664:9: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]

and actually there are slight code paths that slip.
This patch adds the proper initializations to 0 to return the success
code in these code paths.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/ucm/main.c