Date: Sun, 16 Aug 2015 00:37:48 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r286819 - stable/10/lib/libgeom Message-ID: <201508160037.t7G0bmKi051214@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sun Aug 16 00:37:47 2015 New Revision: 286819 URL: https://svnweb.freebsd.org/changeset/base/286819 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/10/lib/libgeom/geom_xml2tree.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libgeom/geom_xml2tree.c ============================================================================== --- stable/10/lib/libgeom/geom_xml2tree.c Sun Aug 16 00:36:48 2015 (r286818) +++ stable/10/lib/libgeom/geom_xml2tree.c Sun Aug 16 00:37:47 2015 (r286819) @@ -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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508160037.t7G0bmKi051214>