aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-27 13:33:13 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-27 13:33:13 +0800
commit72690460fa1c2b10a2fc135aab434136664f8fd4 (patch)
tree824f6a156f592b8ffa4b3e26e75dbfbb1a547bfd /plugins
parent8683d227456da4b93de9bcffd873d54c73ebf3db (diff)
downloadgsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar
gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.gz
gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.bz2
gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.lz
gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.xz
gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.zst
gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.zip
Avoid reentrancy in enable
svn path=/trunk/; revision=34111
Diffstat (limited to 'plugins')
-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;
}