You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/01/28 01:43:48 UTC

cvs commit: httpd-2.0/modules/experimental mod_charset_lite.c

trawick     02/01/27 16:43:48

  Modified:    modules/experimental mod_charset_lite.c
  Log:
  some level of gcc seems to be confused about whether or not
  b is used before being set; shut it up
  
  Revision  Changes    Path
  1.57      +2 -1      httpd-2.0/modules/experimental/mod_charset_lite.c
  
  Index: mod_charset_lite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_charset_lite.c,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- mod_charset_lite.c	25 Jan 2002 01:11:46 -0000	1.56
  +++ mod_charset_lite.c	28 Jan 2002 00:43:48 -0000	1.57
  @@ -716,7 +716,8 @@
                                     apr_size_t *buffer_avail,
                                     int *hit_eos)
   {
  -    apr_bucket *b, *consumed_bucket;
  +    apr_bucket *b = NULL; /* set to NULL only to quiet some gcc */
  +    apr_bucket *consumed_bucket;
       const char *bucket;
       apr_size_t bytes_in_bucket; /* total bytes read from current bucket */
       apr_size_t bucket_avail;    /* bytes left in current bucket */