httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/arch/netware mod_netware.c
Date Wed, 12 Feb 2003 22:52:16 GMT
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 == '.')
  
  
  

Mime
View raw message