fix savevm command without id or tag
commitf139a4125682ecd45d96c2d1523443d1be65405c
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 20 Jan 2010 16:26:34 +0000 (20 14:26 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 21:45:06 +0000 (26 15:45 -0600)
tree27a302dd02f427510926693d05d30b30b20fff40
parent7b88e48ba56bd849464e44717e81ff129695cc38
fix savevm command without id or tag

savevm without id or tag segfaults in:

(gdb) bt
#0  0x00007f600a83bf8a in __strcmp_sse42 () from /lib64/libc.so.6
#1  0x00000000004745b6 in bdrv_snapshot_find (bs=<value optimized out>,
    sn_info=0x7fff996be280, name=0x0) at savevm.c:1631
#2  0x0000000000475c80 in del_existing_snapshots (name=<value optimized out>,
    mon=<value optimized out>) at savevm.c:1654
#3  do_savevm (name=<value optimized out>, mon=<value optimized out>)

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
savevm.c