summaryrefslogtreecommitdiff
path: root/www/apache22/patches/patch-av
blob: e3309c7bb7b2e34b8166c18ce1f3d7dc2c801dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-av,v 1.2 2009/01/25 09:59:51 tron Exp $

--- modules/generators/mod_cgid.c.orig	2008-08-15 18:08:05.000000000 -0400
+++ modules/generators/mod_cgid.c
@@ -203,7 +203,7 @@ static char **create_argv(apr_pool_t *p,
     char *w;
     int idx = 0;
 
-    if (ap_strchr_c(args, '=')) {
+    if (!(*args) || ap_strchr_c(args, '=')) {
         numwords = 0;
     }
     else {