From cade8abb91b35b684b6d43764f582f2cb539e4c4 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Wed, 12 Feb 2003 22:52:32 +0000 Subject: [PATCH] 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 --- modules/arch/netware/mod_netware.c | 5 +++++ 1 file changed, 5 insertions(+) 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 == '.') -- 2.50.1