1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtwm: 0 is not NULL

This commit is contained in:
alx 2016-04-17 12:55:53 +02:00 committed by Jon Trulson
parent ed2c149bfc
commit 720fd9365a

View file

@ -1089,12 +1089,12 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *event)
directory, then we must call execlp and not execl directory, then we must call execlp and not execl
*/ */
shellname = shell; shellname = shell;
execlp (shell, shellname, "-c", args, 0); execlp (shell, shellname, "-c", args, NULL);
} }
else else
{ {
shellname++; shellname++;
execl (shell, shellname, "-c", args, 0); execl (shell, shellname, "-c", args, NULL);
} }
} }
@ -1103,9 +1103,9 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *event)
* Try /bin/sh . * Try /bin/sh .
*/ */
#ifdef SVR4 #ifdef SVR4
execl ("/usr/bin/sh", "sh", "-c", args, 0); execl ("/usr/bin/sh", "sh", "-c", args, NULL);
#else #else
execl ("/bin/sh", "sh", "-c", args, 0); execl ("/bin/sh", "sh", "-c", args, NULL);
#endif #endif