[gnome-settings-daemon/gnome-3-10] 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/gnome-3-10] housekeeping: Fix warnings when info cannot be gathered
- Date: Mon, 19 May 2014 15:05:16 +0000 (UTC)
commit ece1d41c5e00b15d50bf312148712c8ade3aa02f
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 629f51b..87d35ba 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -245,6 +245,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]