]> granicus.if.org Git - apache/commitdiff
Initialize a local variable to prevent a gcc warning about
authorJeff Trawick <trawick@apache.org>
Tue, 1 May 2001 11:17:07 +0000 (11:17 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 1 May 2001 11:17:07 +0000 (11:17 +0000)
possible use before set.  The code was fine but it is best
to keep gcc quiet lest we stop paying attention.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88968 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/util.c

index 741af53ba0fbab61d2c15266e9f25f3bf0ce9962..5a8d4728e0d35c7e38c5dfc56556f7011047ca1a 100644 (file)
@@ -334,7 +334,7 @@ const char *dav_xml_get_cdata(const ap_xml_elem *elem, apr_pool_t *pool,
     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) {