diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-12-03 19:28:10 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-12-03 19:28:10 +0800 |
commit | 350ef03d554a4c8f67e22bdf89fa888554f0b75e (patch) | |
tree | 31f5ab8ce49727f7a8c036c13906c48ff44d82fc /ui/ncurses | |
parent | 4d411d31deff5c4b2ad7d1689a9219c649843875 (diff) | |
download | talos-petitboot-350ef03d554a4c8f67e22bdf89fa888554f0b75e.tar.gz talos-petitboot-350ef03d554a4c8f67e22bdf89fa888554f0b75e.zip |
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 <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses')
-rw-r--r-- | ui/ncurses/nc-boot-editor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)] != '/') |