diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 13:29:40 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 13:29:40 +0000 |
commit | 97cbb842362e2548a59a1560c50e5f998fa5bda8 (patch) | |
tree | de82d67d50f7c9c5f2484528780c6a174bb25a60 /fuse | |
parent | 4c5038ab54fb6fdff75ca8d5fdda9e73f48a5050 (diff) | |
download | libguestfs-97cbb842362e2548a59a1560c50e5f998fa5bda8.tar.gz libguestfs-97cbb842362e2548a59a1560c50e5f998fa5bda8.tar.xz libguestfs-97cbb842362e2548a59a1560c50e5f998fa5bda8.zip |
fuse: Fix segfault in guestmount --verbose.
If hash_delete returns NULL and --verbose option was given then
this would cause a segfault.
Diffstat (limited to 'fuse')
-rw-r--r-- | fuse/dircache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse/dircache.c b/fuse/dircache.c index 157035e0..8cff0d39 100644 --- a/fuse/dircache.c +++ b/fuse/dircache.c @@ -384,7 +384,7 @@ lsc_remove (Hash_table *ht, const char *pathname, Hash_data_freer freer) entry = hash_delete (ht, &key); - if (verbose) + if (verbose && entry) fprintf (stderr, "dir cache: invalidating entry %p (%s)\n", entry, entry->pathname); |