aboutsummaryrefslogtreecommitdiff
path: root/lib/libgeom/geom_xml2tree.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-08-13 13:19:56 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-08-13 13:19:56 +0000
commit0aedf4e812bcdc5f6bcd5f5bb3960e6be169755c (patch)
tree99fdd22bfbe779d9d374140957b77cc0994ed240 /lib/libgeom/geom_xml2tree.c
parent6d57346a39ce878c28ad0a9429e367840c061066 (diff)
downloadsrc-0aedf4e812bcdc5f6bcd5f5bb3960e6be169755c.tar.gz
src-0aedf4e812bcdc5f6bcd5f5bb3960e6be169755c.zip
Revert part of r280687, reporting "1" (true) for empty value.
For example, it made gpart partitions without label report "1" as label. PR: 202089 MFC after: 3 days
Notes
Notes: svn path=/head/; revision=286719
Diffstat (limited to 'lib/libgeom/geom_xml2tree.c')
-rw-r--r--lib/libgeom/geom_xml2tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
index 2c23361b1666..54a31ca42089 100644
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -286,7 +286,7 @@ EndElement(void *userData, const char *name)
"element", name);
return;
}
- gc->lg_val = p ? p : strdup("1");
+ gc->lg_val = p;
LIST_INSERT_HEAD(c, gc, lg_config);
return;
}