diff options
author | Mike Kestner <mkestner@ximian.com> | 2002-12-14 13:27:01 +0800 |
---|---|---|
committer | Mike Kestner <mkestner@src.gnome.org> | 2002-12-14 13:27:01 +0800 |
commit | 02a2b0046f0c969bcaf6b1fecf68a6f001e8cd4b (patch) | |
tree | 57da521b87de715865d4b5864c3fd72bb099c2e1 /widgets | |
parent | 5a5eec6a63ca61ba652dfc4f096b5d29bd26c98e (diff) | |
download | gsoc2013-evolution-02a2b0046f0c969bcaf6b1fecf68a6f001e8cd4b.tar.gz gsoc2013-evolution-02a2b0046f0c969bcaf6b1fecf68a6f001e8cd4b.tar.zst gsoc2013-evolution-02a2b0046f0c969bcaf6b1fecf68a6f001e8cd4b.zip |
protect against null instance_id's (bug#35540)
2002-12-13 Mike Kestner <mkestner@ximian.com>
* gal-view-instance.c (gal_view_instance_construct):
protect against null instance_id's (bug#35540)
svn path=/trunk/; revision=19118
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/menus/gal-view-instance.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-instance.c b/widgets/menus/gal-view-instance.c index f227a020fd..e43fa92fb7 100644 --- a/widgets/menus/gal-view-instance.c +++ b/widgets/menus/gal-view-instance.c @@ -322,7 +322,11 @@ gal_view_instance_construct (GalViewInstance *instance, GalViewCollection *colle instance->collection_changed_id = g_signal_connect (collection, "changed", G_CALLBACK (collection_changed), instance); - instance->instance_id = g_strdup (instance_id); + + if (instance_id) + instance->instance_id = g_strdup (instance_id); + else + instance->instance_id = g_strdup (""); safe_id = g_strdup (instance->instance_id); e_filename_make_safe (safe_id); |