Commit 837e38fd authored by Pavel Emelyanov's avatar Pavel Emelyanov

crit: Fix uninitialized print_hex

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ee3239f9
......@@ -48,6 +48,8 @@ def _pb2dict_cast(field, value, fmt = None, is_hex = False):
is_hex = _marked_as_hex(field)
if fmt:
print_hex = 'hex' in fmt
else:
print_hex = False
if field.type == FD.TYPE_MESSAGE:
return pb2dict(value, fmt, is_hex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment