From: root Date: Fri, 14 Sep 2007 10:15:41 +0000 (+0000) Subject: fix disastrous bug X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a103d030117276c180b1480546871f918c7c3452;p=dana%2Furxvt.git fix disastrous bug --- diff --git a/src/init.C b/src/init.C index 0985b549..0dcc224c 100644 --- a/src/init.C +++ b/src/init.C @@ -1346,7 +1346,7 @@ rxvt_term::run_child (const char *const *argv) sigprocmask (SIG_SETMASK, &ss, 0); /* command interpreter path */ - if (argv != NULL) + if (argv) { # ifdef DEBUG_CMD int i; @@ -1376,7 +1376,7 @@ rxvt_term::run_child (const char *const *argv) argv0 = login; } - execlp (shell, argv0, NULL); + execlp (shell, argv0, (char *)0); /* no error message: STDERR is closed! */ }