summaryrefslogtreecommitdiffstats
path: root/util/kconfig/lxdialog
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-06-05 08:41:29 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-06-11 08:52:08 +0000
commit1d3fde4693aee3299b9023ec325cbfee90ed0969 (patch)
treec24725edd21dee6e97739f37e5548aa19d60d0ba /util/kconfig/lxdialog
parentf061a73ab9654ccae73b2fcbd58d8f08017bae59 (diff)
downloadcoreboot-1d3fde4693aee3299b9023ec325cbfee90ed0969.tar.gz
coreboot-1d3fde4693aee3299b9023ec325cbfee90ed0969.tar.bz2
coreboot-1d3fde4693aee3299b9023ec325cbfee90ed0969.zip
{src,util}: Use NULL instead of 0 for pointer
Change-Id: I75fa4577055f25dde0a8b1044c005bba72cabd92 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26857 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/kconfig/lxdialog')
-rw-r--r--util/kconfig/lxdialog/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/kconfig/lxdialog/util.c b/util/kconfig/lxdialog/util.c
index f7abdeb92af0..69b2fb59ac67 100644
--- a/util/kconfig/lxdialog/util.c
+++ b/util/kconfig/lxdialog/util.c
@@ -383,7 +383,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
{
int newl, cur_x, cur_y;
int prompt_len, room, wlen;
- char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0;
+ char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = NULL;
strcpy(tempstr, prompt);