subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1442335 - /subversion/trunk/subversion/svn/info-cmd.c
Date Mon, 04 Feb 2013 20:28:49 GMT
Author: rhuijben
Date: Mon Feb  4 20:28:48 2013
New Revision: 1442335

URL: http://svn.apache.org/viewvc?rev=1442335&view=rev
Log:
* subversion/svn/info-cmd.c
  (print_info_xml): Don't segfault when repos_root_url is non-null, but URL is.
     (Currently repos_root_URL is null for tree conflicts, caused by a bug that
      I'm about to fix.)

Modified:
    subversion/trunk/subversion/svn/info-cmd.c

Modified: subversion/trunk/subversion/svn/info-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/info-cmd.c?rev=1442335&r1=1442334&r2=1442335&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/info-cmd.c (original)
+++ subversion/trunk/subversion/svn/info-cmd.c Mon Feb  4 20:28:48 2013
@@ -105,7 +105,7 @@ print_info_xml(void *baton,
   /* "<url> xx </url>" */
   svn_cl__xml_tagged_cdata(&sb, pool, "url", info->URL);
 
-  if (info->repos_root_URL)
+  if (info->repos_root_URL && info->URL)
     {
       /* "<relative-url> xx </relative-url>" */
       svn_cl__xml_tagged_cdata(&sb, pool, "relative-url",



Mime
View raw message