httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apache-1.3/src/modules/standard mod_usertrack.c
Date Sat, 14 Mar 1998 00:52:49 GMT
dgaudet     98/03/13 16:52:49

  Modified:    src/modules/standard mod_usertrack.c
  Log:
  cute use of strchr, but isdigit() would be preferred
  
  Revision  Changes    Path
  1.30      +1 -1      apache-1.3/src/modules/standard/mod_usertrack.c
  
  Index: mod_usertrack.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_usertrack.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- mod_usertrack.c	1998/03/13 19:20:47	1.29
  +++ mod_usertrack.c	1998/03/14 00:52:48	1.30
  @@ -277,7 +277,7 @@
       /* {<num> <type>}* */
       while (word[0]) {
           /* <num> */
  -        if (strchr("0123456789", word[0]) != NULL)
  +	if (isdigit(word[0]))
               num = atoi(word);
           else
               return "bad expires code, numeric value expected.";
  
  
  

Mime
View raw message