mixer: fix coverity issues

This commit is contained in:
Michaël Bouchaud (yoz) 2016-11-02 15:27:17 +01:00
parent 6723756d6b
commit 2a0b4dfbc4
1 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ _actions_unregister(void)
mixer_context->actions.decr_app = NULL;
}
if (mixer_context->actions.incr_app)
if (mixer_context->actions.mute_app)
{
e_action_predef_name_del("Mixer",
_("Mute Volume of Focuse Application"));
@ -890,7 +890,7 @@ _get_ppid(pid_t pid)
ERR("Can't open %s, maybee the process exited.", buf);
return -1;
}
read(fd, buf, sizeof(buf));
if ((read(fd, buf, sizeof(buf))) < 4) return -1;
buf[sizeof(buf) - 1] = '0';
s = strrchr(buf, ')');
s += 3;