[gnome-settings-daemon] housekeeping: Fix warnings when info cannot be gathered
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: Fix warnings when info cannot be gathered
- Date: Fri, 16 May 2014 16:37:01 +0000 (UTC)
commit c296a73cec417752e3ff538c6719a74348fcb6e7
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 16 18:30:06 2014 +0200
housekeeping: Fix warnings when info cannot be gathered
plugins/housekeeping/gsd-disk-space.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index 6ef1b5c..77b1d70 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -244,6 +244,8 @@ should_purge_file (GFile *file,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
cancellable,
NULL);
+ if (!info)
+ return FALSE;
date = g_file_info_get_deletion_date (info);
if (date == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]