[gthumb] _g_file_info_update: ignore if src is null
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] _g_file_info_update: ignore if src is null
- Date: Tue, 4 Jul 2017 16:00:10 +0000 (UTC)
commit 59888963d85595ef6a5adec9ddbfe3a8fd83135c
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jun 30 15:27:01 2017 +0200
_g_file_info_update: ignore if src is null
gthumb/glib-utils.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/glib-utils.c b/gthumb/glib-utils.c
index c149531..6c28295 100644
--- a/gthumb/glib-utils.c
+++ b/gthumb/glib-utils.c
@@ -2959,6 +2959,9 @@ _g_file_info_update (GFileInfo *dest_info,
char **attributes;
int i;
+ if (src_info == NULL)
+ return;
+
attributes = g_file_info_list_attributes (src_info, NULL);
for (i = 0; attributes[i] != NULL; i++) {
GFileAttributeType type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]