Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CFFF67C9 for ; Thu, 9 Jun 2011 23:45:59 +0000 (UTC) Received: (qmail 69279 invoked by uid 500); 9 Jun 2011 23:45:58 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 69226 invoked by uid 500); 9 Jun 2011 23:45:58 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 69219 invoked by uid 99); 9 Jun 2011 23:45:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 23:45:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 23:45:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C93A72388903; Thu, 9 Jun 2011 23:45:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1134132 - /httpd/httpd/trunk/modules/filters/mod_data.c Date: Thu, 09 Jun 2011 23:45:37 -0000 To: cvs@httpd.apache.org From: minfrin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110609234537.C93A72388903@eris.apache.org> Author: minfrin Date: Thu Jun 9 23:45:37 2011 New Revision: 1134132 URL: http://svn.apache.org/viewvc?rev=1134132&view=rev Log: Ensure variable is initialised before use. Modified: httpd/httpd/trunk/modules/filters/mod_data.c Modified: httpd/httpd/trunk/modules/filters/mod_data.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_data.c?rev=1134132&r1=1134131&r2=1134132&view=diff ============================================================================== --- httpd/httpd/trunk/modules/filters/mod_data.c (original) +++ httpd/httpd/trunk/modules/filters/mod_data.c Thu Jun 9 23:45:37 2011 @@ -72,7 +72,7 @@ static apr_status_t data_out_filter(ap_f /* first time in? create a context */ if (!ctx) { char *type; - char *charset; + char *charset = NULL; char *end; const char *content_length;