From 21f52550737355b6e37b646fd9ef9eb1feee2ce9 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Tue, 1 May 2001 11:17:07 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88968 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/main/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dav/main/util.c b/modules/dav/main/util.c index 741af53ba0..5a8d4728e0 100644 --- a/modules/dav/main/util.c +++ b/modules/dav/main/util.c @@ -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) { -- 2.50.1