You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2013/02/20 20:44:15 UTC

svn commit: r1448367 - /subversion/trunk/subversion/libsvn_wc/delete.c

Author: rhuijben
Date: Wed Feb 20 19:44:15 2013
New Revision: 1448367

URL: http://svn.apache.org/r1448367
Log:
* subversion/libsvn_wc/delete.c
  (svn_wc__delete_many,
   svn_wc__delete_internal): Following up on r1448366, fix segfault.

Modified:
    subversion/trunk/subversion/libsvn_wc/delete.c

Modified: subversion/trunk/subversion/libsvn_wc/delete.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/delete.c?rev=1448367&r1=1448366&r2=1448367&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/delete.c (original)
+++ subversion/trunk/subversion/libsvn_wc/delete.c Wed Feb 20 19:44:15 2013
@@ -257,7 +257,7 @@ svn_wc__delete_many(svn_wc_context_t *wc
                                      svn_dirent_local_style(local_abspath,
                                                             iterpool));
         }
-      if (!repos_relpath[0])
+      if (repos_relpath && !repos_relpath[0])
         return svn_error_createf(SVN_ERR_WC_PATH_UNEXPECTED_STATUS, NULL,
                                      _("'%s' represents the repository root "
                                        "and cannot be deleted"),
@@ -375,7 +375,7 @@ svn_wc__delete_internal(svn_wc_context_t
                                    "cannot be deleted"),
                                  svn_dirent_local_style(local_abspath, pool));
     }
-  if (!repos_relpath[0])
+  if (repos_relpath && !repos_relpath[0])
     return svn_error_createf(SVN_ERR_WC_PATH_UNEXPECTED_STATUS, NULL,
                              _("'%s' represents the repository root "
                                "and cannot be deleted"),