Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 34665 invoked from network); 2 Feb 2010 23:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 23:45:54 -0000 Received: (qmail 33537 invoked by uid 500); 2 Feb 2010 23:45:54 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 33487 invoked by uid 500); 2 Feb 2010 23:45:53 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org, commits@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 33479 invoked by uid 99); 2 Feb 2010 23:45:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 23:45:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Tue, 02 Feb 2010 23:45:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4FEB223888FE; Tue, 2 Feb 2010 23:45:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r905840 - /subversion/trunk/subversion/svn/obliterate-cmd.c Date: Tue, 02 Feb 2010 23:45:30 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100202234530.4FEB223888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: julianfoad Date: Tue Feb 2 23:45:29 2010 New Revision: 905840 URL: http://svn.apache.org/viewvc?rev=905840&view=rev Log: A follow-up to r905679: fix a bug in error handling in the notifications. Found by: danielsh * subversion/svn/obliterate-cmd.c (svn_cl__obliterate): Make the notification baton a real structure rather than a null pointer pretending to be a structure. Modified: subversion/trunk/subversion/svn/obliterate-cmd.c Modified: subversion/trunk/subversion/svn/obliterate-cmd.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/obliterate-cmd.c?rev=905840&r1=905839&r2=905840&view=diff ============================================================================== --- subversion/trunk/subversion/svn/obliterate-cmd.c (original) +++ subversion/trunk/subversion/svn/obliterate-cmd.c Tue Feb 2 23:45:29 2010 @@ -92,7 +92,7 @@ svn_cl__opt_state_t *opt_state = ((svn_cl__cmd_baton_t *) baton)->opt_state; svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx; apr_array_header_t *targets; - struct notify_baton *nb = { FALSE }; + struct notify_baton nb = { FALSE }; svn_opt_revision_t rev; svn_revnum_t revnum; const char *url; @@ -103,7 +103,7 @@ ctx, pool)); ctx->notify_func2 = notify; - ctx->notify_baton2 = nb; + ctx->notify_baton2 = &nb; /* Parse the argument into TRUEPATH and REVNUM. */ if (targets->nelts != 1)