migration: don't use uninitialized variables
authorPawit Pornkitprasan <p.pawit@gmail.com>
Mon, 29 Jul 2013 23:39:52 +0000 (08:39 +0900)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 1 Aug 2013 13:40:46 +0000 (09:40 -0400)
commit8c0426aed1d2279845e6a2c3355da8b5d9926cb6
tree878e23e673cb1e318aaa3249680024c18385cb04
parent00c14997cb95bf3e6c18c2264ef5e10642d89b3a
migration: don't use uninitialized variables

The qmp_migrate method uses the 'blk' and 'inc' parameter without
checking if they're valid or not (they may be uninitialized if
command is received via QMP)

Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
migration.c