[gthumb] raw: fixed crash at start-up time
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] raw: fixed crash at start-up time
- Date: Wed, 23 Dec 2015 16:22:24 +0000 (UTC)
commit cad81e76afc650e8ce95bf52d2d79a0b104b9b0e
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Dec 23 17:21:12 2015 +0100
raw: fixed crash at start-up time
the mime type array is closed by a null element
extensions/raw_files/main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/raw_files/main.c b/extensions/raw_files/main.c
index 3c1bea4..6cf2ff8 100644
--- a/extensions/raw_files/main.c
+++ b/extensions/raw_files/main.c
@@ -408,7 +408,7 @@ gthumb_extension_activate (void)
int count_of_raw_types, i;
count_of_raw_types = g_list_length (mime_types);
- gchar *raw_mime_types[count_of_raw_types];
+ gchar *raw_mime_types[count_of_raw_types+1];
i = 0;
l = mime_types;
@@ -418,6 +418,7 @@ gthumb_extension_activate (void)
i++;
l = next;
}
+ raw_mime_types[i] = NULL;
gth_main_register_metadata_provider (GTH_TYPE_METADATA_PROVIDER_RAW);
gth_main_register_image_loader_func_v (_cairo_image_surface_create_from_raw,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]