From e9f7d1de66f021f2de4d660ec73425ba53b793bd Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Sat, 26 Apr 2008 12:05:08 +0000 Subject: [PATCH] Fix code warning - val.type is a char, and NULL is not. Thanks to Carl-Daniel for spotting this one, and Segher for providing the solution right away. This is a trivial patch. Signed-off-by: Ward Vandewege Acked-by: Ward Vandewege git-svn-id: svn://coreboot.org/repository/coreboot-v3@667 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- util/dtc/livetree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dtc/livetree.c b/util/dtc/livetree.c index 4877991526..11d796e04b 100644 --- a/util/dtc/livetree.c +++ b/util/dtc/livetree.c @@ -32,7 +32,7 @@ struct property *build_property(char *name, struct data val, char *label) new->name = name; new->val = val; - if (new->val.type == NULL) { + if (new->val.type == '\0') { new->val.type = 'S'; // Default to 'scalar' type; if this is a cell or byte value, type will already be set }