aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/tnef-attachments/ChangeLog4
-rw-r--r--plugins/tnef-attachments/tnef-plugin.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/tnef-attachments/ChangeLog b/plugins/tnef-attachments/ChangeLog
index ca3c834f30..3f02fd5833 100644
--- a/plugins/tnef-attachments/ChangeLog
+++ b/plugins/tnef-attachments/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-27 Srinivasa Ragavan <sragavan@novell.com>
+
+ * tnef-plugin.c: (e_plugin_lib_enable): Avoid reentrancy in enable.
+
2007-07-09 Srinivasa Ragavan <sragavan@novell.com>
* org-gnome-tnef-attachments.eplug.xml: Fixed bugs where the .so wasn't
diff --git a/plugins/tnef-attachments/tnef-plugin.c b/plugins/tnef-attachments/tnef-plugin.c
index f0c6df4af0..0faac25811 100644
--- a/plugins/tnef-attachments/tnef-plugin.c
+++ b/plugins/tnef-attachments/tnef-plugin.c
@@ -35,6 +35,7 @@ int verbose = 0;
int saveRTF = 0;
int saveintermediate = 0;
char *filepath = NULL;
+gboolean loaded = FALSE;
void processTnef(TNEFStruct *tnef);
void saveVCalendar(TNEFStruct *tnef);
void saveVCard(TNEFStruct *tnef);
@@ -178,10 +179,15 @@ int e_plugin_lib_enable(EPluginLib *ep, int enable);
int
e_plugin_lib_enable(EPluginLib *ep, int enable)
{
+ if (loaded)
+ return 0;
+
+ loaded = TRUE;
if (enable) {
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
}
+
return 0;
}