virt-alignment-scan: Add checks for when API calls return NULL.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 24 Nov 2011 14:06:31 +0000 (14:06 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 24 Nov 2011 21:06:55 +0000 (21:06 +0000)
commited628d30b05b4f5884f1d2029633cf155bf5e571
tree8c70d58f5ee6e2be764d1281f7455005c94403da
parentfd0dfead3088da242e1654095cbb6f37383be843
virt-alignment-scan: Add checks for when API calls return NULL.

In particular, virt-alignment-scan -a /dev/null would segfault
because of an error returned by parted.
(cherry picked from commit 7b192f5a672197ad67ac23501e420c674aa2f3a9)
align/scan.c