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:
Ward Vandewege 2008-04-26 12:05:08 +00:00
commit e9f7d1de66

View file

@ -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
}