+2004-12-02 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * timidity/timidity.c (list_dyna_interface): bug fix : cmp can be
+ uninitialized
+
2004-11-03 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
* timidity/resample.c (rs_vib_bidir): disable PRECALC_LOOPS for
URL url;
char fname[BUFSIZ], name[16], *info;
ControlMode *cmp, **cmpp;
- int id;
if ((url = url_dir_open(path)) == NULL)
return;
while (url_gets(url, fname, sizeof(fname)) != NULL)
if (strncmp(fname, "if_", 3) == 0) {
int i;
+ int id = '\0';
for (i = 0; i < 15 && fname[i + 3] != '.'; i++)
name[i] = fname[i + 3];
name[i] = '\0';
id = cmp->id_character;
break;
}
- if (mark[id])
+ if (!id || mark[id])
continue;
mark[id] = 1;
if ((info = dynamic_interface_info(name)) == NULL)