httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/main util.c
Date Tue, 01 May 2001 11:17:08 GMT
trawick     01/05/01 04:17:08

  Modified:    modules/dav/main util.c
  Log:
  Initialize a local variable to prevent a gcc warning about
  possible use before set.  The code was fine but it is best
  to keep gcc quiet lest we stop paying attention.
  
  Revision  Changes    Path
  1.30      +1 -1      httpd-2.0/modules/dav/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/util.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- util.c	2001/04/27 05:27:00	1.29
  +++ util.c	2001/05/01 11:17:07	1.30
  @@ -334,7 +334,7 @@
       char *cdata;
       char *s;
       apr_size_t tlen;
  -    const char *found_text;
  +    const char *found_text = NULL; /* initialize to avoid gcc warning */
       int found_count = 0;
   
       for (scan = elem->first_cdata.first; scan != NULL; scan = scan->next) {
  
  
  

Mime
View raw message