From 350ef03d554a4c8f67e22bdf89fa888554f0b75e Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 3 Dec 2013 19:28:10 +0800 Subject: [PATCH] ui/ncurses/boot-editor: Fix (null) when non-device resources are shown We're seeing the following in the boot editor: image: (null)ftp://... the (null) is due to the sep in conditional_prefix, which should be blank, not NULL. Signed-off-by: Jeremy Kerr --- ui/ncurses/nc-boot-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c index 86fba4d..57cc0dc 100644 --- a/ui/ncurses/nc-boot-editor.c +++ b/ui/ncurses/nc-boot-editor.c @@ -136,7 +136,7 @@ static char *conditional_prefix(struct pb_boot_data *ctx, if (!value || !*value) return NULL; - sep = NULL; + sep = ""; if (!prefix) prefix = ""; else if (prefix[strlen(prefix)] != '/') -- 2.39.2