summaryrefslogtreecommitdiffstats
path: root/modules/arch/netware
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2003-02-12 23:52:32 +0100
committerBradley Nicholes <bnicholes@apache.org>2003-02-12 23:52:32 +0100
commitcade8abb91b35b684b6d43764f582f2cb539e4c4 (patch)
tree1eeda2625d8861de4ca1c09166ee8fed8167c3be /modules/arch/netware
parentmod_cgi, mod_cgid, mod_ext_filter: Log errors when scripts cannot (diff)
downloadapache2-cade8abb91b35b684b6d43764f582f2cb539e4c4.tar.xz
apache2-cade8abb91b35b684b6d43764f582f2cb539e4c4.zip
Make sure that the file extension is at least an empty string rather than NULL
so that the table searches will function properly git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch/netware')
-rw-r--r--modules/arch/netware/mod_netware.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/arch/netware/mod_netware.c b/modules/arch/netware/mod_netware.c
index f95bda26be..be111d0493 100644
--- a/modules/arch/netware/mod_netware.c
+++ b/modules/arch/netware/mod_netware.c
@@ -171,6 +171,11 @@ static apr_status_t ap_cgi_build_command(const char **cmd, const char ***argv,
/* Figure out what the extension is so that we can matche it. */
ext = strrchr(apr_filename_of_pathname(cmd_only), '.');
+
+ /* If there isn't an extension then give it an empty string */
+ if (!ext) {
+ ext = "";
+ }
/* eliminate the '.' if there is one */
if (*ext == '.')