OSDN Git Service

topology: initialize variable for error output
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 11 Jul 2016 12:06:00 +0000 (21:06 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Jul 2016 13:24:12 +0000 (15:24 +0200)
commit671dc9048672de684f93c00746750287808fdd99
treef468c7a3e40ed910f5c3d43dd33f05650d714bf5
parentd7436eba8d43d78e97ceceaf41887cd1569d006d
topology: initialize variable for error output

This commit fixes below compiler warnings.

In file included from ../../include/local.h:165:0,
                 from tplg_local.h:17,
                 from data.c:20:
data.c: In function ‘tplg_parse_tuples’:
../../include/error.h:64:21: warning: ‘id’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 #define SNDERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, __VA_ARGS__) /**< Shows a sound error message. */
                     ^
data.c:576:14: note: ‘id’ was declared here
  const char *id;
              ^

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/data.c