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 <ward@gnu.org> Acked-by: Ward Vandewege <ward@gnu.org> git-svn-id: svn://coreboot.org/repository/coreboot-v3@667 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
479ca87df3
commit
e9f7d1de66
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue