summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-11-06 08:48:15 +0100
committerStefano Karapetsas <[email protected]>2014-11-06 08:48:15 +0100
commit38ac39670151f9d8d1c689d3f6d16570a18290e9 (patch)
tree10721443df952edee028e60b75700da5259a9be1
parentdf913aef213e9314e8037944fdb9a44f6dc7f9cf (diff)
downloadcaja-38ac39670151f9d8d1c689d3f6d16570a18290e9.tar.bz2
caja-38ac39670151f9d8d1c689d3f6d16570a18290e9.tar.xz
Fix segmentation fault if extensions dont provide information file
-rw-r--r--src/caja-file-management-properties.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 1484aba7..24283611 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -623,9 +623,9 @@ extension_about_clicked (GtkButton *button, Extension *ext)
MateAboutDialog *extension_about_dialog;
extension_about_dialog = mate_about_dialog_new();
- mate_about_dialog_set_program_name (extension_about_dialog, ext->name);
+ mate_about_dialog_set_program_name (extension_about_dialog, ext->name != NULL ? ext->name : ext->filename);
mate_about_dialog_set_comments (extension_about_dialog, ext->description);
- mate_about_dialog_set_logo_icon_name (extension_about_dialog, ext->icon);
+ mate_about_dialog_set_logo_icon_name (extension_about_dialog, ext->icon != NULL ? ext->icon : "system-run");
mate_about_dialog_set_copyright (extension_about_dialog, ext->copyright);
mate_about_dialog_set_authors (extension_about_dialog, ext->author);
mate_about_dialog_set_version (extension_about_dialog, ext->version);