Skip to content

Commit baab923

Browse files
author
Marina Polyakova
committed
PGPRO-7102: fix warning in the function handle_response
For a build without assertions we get the following warning: src/resolver.c: In function ‘handle_response’: src/resolver.c:616:37: error: ‘gid’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
1 parent 605aa9e commit baab923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/resolver.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ handle_response(MtmConfig *mtm_cfg, MtmMessage *raw_msg)
450450
else if (raw_msg->tag == T_Mtm2AResponse)
451451
gid = ((Mtm2AResponse *) raw_msg)->gid;
452452
else
453-
Assert(false);
453+
mtm_log(ERROR, "Illegal message tag %d", raw_msg->tag);
454454

455455
mtm_log(ResolverTx, "handle_response: got '%s'", MtmMesageToString(raw_msg));
456456

0 commit comments

Comments
 (0)