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
This commit is contained in:
wilfried 2007-04-25 11:33:21 +00:00
parent 886c0ab2bd
commit 21cf4b7ace
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$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)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_session_c,v 1.1 2007/04/25 11:34:00 wilfried Exp $
--- src/session.c.orig Fri Mar 11 22:35:38 2005
+++ src/session.c Wed Mar 14 21:17:06 2007
@@ -381,7 +381,7 @@ execCommand(WScreen *scr, char *command,
wtokensplit(command, &argv, &argc);
- if (argv==NULL) {
+ if (!argc) {
return 0;
}