Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 78343 invoked by uid 500); 12 Feb 2003 22:52:18 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 78330 invoked by uid 500); 12 Feb 2003 22:52:17 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 12 Feb 2003 22:52:16 -0000 Message-ID: <20030212225216.21601.qmail@icarus.apache.org> From: bnicholes@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/arch/netware mod_netware.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N bnicholes 2003/02/12 14:52:16 Modified: modules/arch/netware Tag: APACHE_2_0_BRANCH mod_netware.c Log: Make sure that the file extension is at least an empty string rather than NULL so that the table searches will function properly Revision Changes Path No revision No revision 1.5.2.4 +5 -0 httpd-2.0/modules/arch/netware/mod_netware.c Index: mod_netware.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/arch/netware/mod_netware.c,v retrieving revision 1.5.2.3 retrieving revision 1.5.2.4 diff -u -r1.5.2.3 -r1.5.2.4 --- mod_netware.c 11 Feb 2003 23:48:53 -0000 1.5.2.3 +++ mod_netware.c 12 Feb 2003 22:52:16 -0000 1.5.2.4 @@ -171,6 +171,11 @@ /* 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 == '.')