Commit 29f6d62a authored by Pavel Emelyanov's avatar Pavel Emelyanov

pb: Init fsize to make compiler happy

protobuf.c: In function ‘pb_show_msg’:
protobuf.c:384:68: error: ‘fsize’ may be used uninitialized in this function [-Werror=uninitialized]
protobuf.c:247:9: note: ‘fsize’ was declared here

The warning about 'may be uninitialized' is false -- the BUG() is a never-returning function.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 96b62808
......@@ -244,7 +244,7 @@ static size_t pb_show_prepare_field_context(const ProtobufCFieldDescriptor *fd,
pb_pr_ctl_t *ctl)
{
pb_pr_field_t *field = &ctl->cur;
size_t fsize;
size_t fsize = 0;
switch (fd->type) {
case PROTOBUF_C_TYPE_ENUM:
......
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