subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r905840 - /subversion/trunk/subversion/svn/obliterate-cmd.c
Date Tue, 02 Feb 2010 23:45:30 GMT
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)



Mime
View raw message