diff options
-rw-r--r-- | client/gvfsfusedaemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c index 80385b40..5a7767c2 100644 --- a/client/gvfsfusedaemon.c +++ b/client/gvfsfusedaemon.c @@ -2032,7 +2032,7 @@ vfs_truncate (const gchar *path, off_t size) if (fh) g_mutex_lock (&fh->mutex); - if (fh->stream && fh->op == FILE_OP_WRITE) + if (fh && fh->stream && fh->op == FILE_OP_WRITE) { result = truncate_stream (file, fh, size); } |