Date: Thu, 13 Aug 2015 13:19:57 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286719 - head/lib/libgeom Message-ID: <201508131319.t7DDJvRl033984@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Aug 13 13:19:56 2015 New Revision: 286719 URL: https://svnweb.freebsd.org/changeset/base/286719 Log: 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 Modified: head/lib/libgeom/geom_xml2tree.c Modified: head/lib/libgeom/geom_xml2tree.c ============================================================================== --- head/lib/libgeom/geom_xml2tree.c Thu Aug 13 05:42:56 2015 (r286718) +++ head/lib/libgeom/geom_xml2tree.c Thu Aug 13 13:19:56 2015 (r286719) @@ -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?201508131319.t7DDJvRl033984>