openbsd-ports/x11/windowmaker/patches/patch-src_dock_c
wilfried 21cf4b7ace The WINGs-function wtokensplit does not set argv to NULL if no
string has been split - instead argc is set to 0

patch from Tobias Stoeckmann
2007-04-25 11:33:21 +00:00

13 lines
373 B
Plaintext

$OpenBSD: patch-src_dock_c,v 1.1 2007/04/25 11:33:21 wilfried Exp $
--- src/dock.c.orig Sat Oct 23 05:10:40 2004
+++ src/dock.c Wed Mar 14 21:17:01 2007
@@ -2977,7 +2977,7 @@ execCommand(WAppIcon *btn, char *command
wtokensplit(cmdline, &argv, &argc);
- if (argv==NULL) {
+ if (!argc) {
if (cmdline)
wfree(cmdline);
if (state)