summaryrefslogtreecommitdiff
path: root/com32/menu/readconfig.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-01 19:44:53 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-01 19:44:53 -0700
commitccce101b32ae26dd180ecaebe95cc749c2f90373 (patch)
tree5ad9f4caa8b9ae1d1150bdd56cf3a0ef24907f15 /com32/menu/readconfig.c
parent18de1534f9b69fb298a5b56e61919130d875b34b (diff)
downloadsyslinux-4.01-pre3.tar.gz
pxelinux: new IPAPPEND 4 to generate a SYSUUID= option.syslinux-4.01-pre3
Add a new IPAPPEND option to generate a SYSUUID= option with the in-system UUID. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu/readconfig.c')
-rw-r--r--com32/menu/readconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index ca9c35e6..8c16fda1 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -343,7 +343,8 @@ static void record(struct menu *m, struct labeldata *ld, const char *append)
if (ld->ipappend) {
ipappend = syslinux_ipappend_strings();
for (i = 0; i < ipappend->count; i++) {
- if ((ld->ipappend & (1U << i)) && ipappend->ptr[i])
+ if ((ld->ipappend & (1U << i)) && ipappend->ptr[i] &&
+ ipappend->ptr[i][0])
ipp += sprintf(ipp, " %s", ipappend->ptr[i]);
}
}