Date: Sun, 30 Jan 2011 15:10:58 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r218095 - user/nwhitehorn/bsdinstall/partedit Message-ID: <201101301510.p0UFAw8U075735@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Sun Jan 30 15:10:58 2011 New Revision: 218095 URL: http://svn.freebsd.org/changeset/base/218095 Log: Do not show (null) for blank labels. Submitted by: brucec Modified: user/nwhitehorn/bsdinstall/partedit/gpart_ops.c Modified: user/nwhitehorn/bsdinstall/partedit/gpart_ops.c ============================================================================== --- user/nwhitehorn/bsdinstall/partedit/gpart_ops.c Sun Jan 30 15:05:10 2011 (r218094) +++ user/nwhitehorn/bsdinstall/partedit/gpart_ops.c Sun Jan 30 15:10:58 2011 (r218095) @@ -374,7 +374,7 @@ gpart_edit(struct gprovider *pp) oldtype = gc->lg_val; items[0].text = gc->lg_val; } - if (strcmp(gc->lg_name, "label") == 0) { + if (strcmp(gc->lg_name, "label") == 0 && gc->lg_val != NULL) { hadlabel = 1; items[3].text = gc->lg_val; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101301510.p0UFAw8U075735>