diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-05-26 20:12:07 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-05-26 20:12:07 +0000 |
commit | 28427efbacbbda906f837a3140be07621d5f2934 (patch) | |
tree | c21de2112dbeb86ec2991cb6c95afcd666cc1d9c /cmd-if-shell.c | |
parent | e14bf9bb8fb5aee94b28badcd47a28ffdd4a3f95 (diff) | |
download | rtmux-28427efbacbbda906f837a3140be07621d5f2934.tar.gz rtmux-28427efbacbbda906f837a3140be07621d5f2934.tar.bz2 rtmux-28427efbacbbda906f837a3140be07621d5f2934.zip |
Sync OpenBSD patchset 819:
Nuke a redundant if statement, from Tiago Cunha.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r-- | cmd-if-shell.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c index d9dc3877..fbae0302 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -1,4 +1,4 @@ -/* $Id: cmd-if-shell.c,v 1.12 2011-02-15 15:20:03 tcunha Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.12 2011/05/25 17:50:52 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -88,11 +88,7 @@ cmd_if_shell_callback(struct job *job) return; } - if (cmd_list_exec(cmdlist, ctx) < 0) { - cmd_list_free(cmdlist); - return; - } - + cmd_list_exec(cmdlist, ctx); cmd_list_free(cmdlist); } |