svn commit: r286820 - stable/9/lib/libgeom

Alexander Motin mav at FreeBSD.org
Sun Aug 16 00:39:45 UTC 2015


Author: mav
Date: Sun Aug 16 00:39:44 2015
New Revision: 286820
URL: https://svnweb.freebsd.org/changeset/base/286820

Log:
  MFC r286719: Revert part of r280687, reporting "1" (true) for empty value.
  
  For example, it made gpart partitions without label report "1" as label.

Modified:
  stable/9/lib/libgeom/geom_xml2tree.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/lib/   (props changed)
  stable/9/lib/libgeom/   (props changed)

Modified: stable/9/lib/libgeom/geom_xml2tree.c
==============================================================================
--- stable/9/lib/libgeom/geom_xml2tree.c	Sun Aug 16 00:37:47 2015	(r286819)
+++ stable/9/lib/libgeom/geom_xml2tree.c	Sun Aug 16 00:39:44 2015	(r286820)
@@ -286,7 +286,7 @@ EndElement(void *userData, const char *n
 			    "element", name);
 			return;
 		}
-		gc->lg_val = p ? p : strdup("1");
+		gc->lg_val = p;
 		LIST_INSERT_HEAD(c, gc, lg_config);
 		return;
 	}


More information about the svn-src-stable-9 mailing list