summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/setup.c b/src/setup.c
index 46a513f..aa980b5 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -414,6 +414,9 @@ lookup_image_size_for_name (TGallerySetup *setup, const gchar *name)
GList *l;
TImageSize *image_size;
+ if (name == NULL)
+ return NULL;
+
for (l = g_list_first (setup->design->image_sizes); l; l = g_list_next (l)) {
image_size = l->data;
g_assert (image_size != NULL);