binman: Record the parent section of each section
[oweals/u-boot.git] / tools / binman / etype / fill.py
index 7210a8324a0a6168460bf327ba1d85a0b4819292..dcfe978a5bf7a1a521ac067438c036fb49c51dac 100644 (file)
@@ -23,7 +23,7 @@ class Entry_fill(Entry):
     """
     def __init__(self, section, etype, node):
         Entry.__init__(self, section, etype, node)
-        if not self.size:
+        if self.size is None:
             self.Raise("'fill' entry must have a size property")
         self.fill_value = fdt_util.GetByte(self._node, 'fill-byte', 0)