df: Fix segfault when using virt-df -a filename
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 30 Nov 2010 16:52:48 +0000 (16:52 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 30 Nov 2010 16:52:48 +0000 (16:52 +0000)
commitfdc8805362c6fc587bb7985c5290362ad3094f4e
tree8aa1713385894e334aabd5258ea968457cd65537
parent8d28fe0ef284a2e786bc92b40fbb4620120de335
df: Fix segfault when using virt-df -a filename

If 'filename' doesn't contain a '/' character then virt-df
was calculating NULL as the basename and later segfaulting.
df/main.c