[gthumb] allow to specify a null list
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] allow to specify a null list
- Date: Mon, 5 Dec 2011 19:59:42 +0000 (UTC)
commit ee86a9bd8b46e9293c31a95af44d50c20ced4dfa
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Dec 5 20:06:23 2011 +0100
allow to specify a null list
gthumb/gth-string-list.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-string-list.c b/gthumb/gth-string-list.c
index 09505e2..421cf55 100644
--- a/gthumb/gth-string-list.c
+++ b/gthumb/gth-string-list.c
@@ -113,6 +113,8 @@ gth_string_list_new_from_ptr_array (GPtrArray *array)
GList *
gth_string_list_get_list (GthStringList *list)
{
+ if (list == NULL)
+ return NULL;
return list->priv->list;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]