summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-05-24 02:47:57 +0000
committersabetts <sabetts>2006-05-24 02:47:57 +0000
commitcaf95d546d92f07077f9d121c47bf45ff0807744 (patch)
treec1cd71edbf2fedb247623fd76a63285303dba463 /src/actions.c
parent4fbb5009496ef087a9c3c96d5bc1c28f23502005 (diff)
downloadratpoison-caf95d546d92f07077f9d121c47bf45ff0807744.zip
* src/actions.c (spawn): pass NULL to execcl
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index 3674d28..8ace412 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2484,8 +2484,8 @@ spawn(char *cmd, int raw)
#endif
/* raw means don't run it through sh. */
if (raw)
- execl (cmd, 0);
- execl("/bin/sh", "sh", "-c", cmd, 0);
+ execl (cmd, NULL);
+ execl("/bin/sh", "sh", "-c", cmd, NULL);
_exit(EXIT_FAILURE);
}