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:32 GMT
bnicholes    2003/02/12 14:52:32

  Modified:    modules/arch/netware 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
  1.9       +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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mod_netware.c	11 Feb 2003 23:48:37 -0000	1.8
  +++ mod_netware.c	12 Feb 2003 22:52:32 -0000	1.9
  @@ -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