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
This commit is contained in:
Alexander Motin 2015-08-13 13:19:56 +00:00
parent 6d57346a39
commit 0aedf4e812
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286719

View File

@ -286,7 +286,7 @@ EndElement(void *userData, const char *name)
"element", name); "element", name);
return; return;
} }
gc->lg_val = p ? p : strdup("1"); gc->lg_val = p;
LIST_INSERT_HEAD(c, gc, lg_config); LIST_INSERT_HEAD(c, gc, lg_config);
return; return;
} }