fix disastrous bug
authorroot <root>
Fri, 14 Sep 2007 10:15:41 +0000 (10:15 +0000)
committerroot <root>
Fri, 14 Sep 2007 10:15:41 +0000 (10:15 +0000)
src/init.C

index 0985b5497a1c93a30f2b810ec475e1ad10dbedee..0dcc224c13336629d12e61013035862d754f8718 100644 (file)
@@ -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! */
     }