fix warning about master not found

This commit is contained in:
Alexandre Ratchov 2014-07-16 14:17:55 +02:00
parent 3f19a6ece0
commit 1894783552
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ mixer_connect(void)
master_addr = -1;
siomix_ondesc(hdl, mixer_ondesc, NULL);
siomix_onctl(hdl, mixer_onctl, NULL);
if (master_addr)
if (master_addr == -1)
fprintf(stderr, "%s: warning, couldn't find master control\n",
devname);
return 1;