diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-08-27 13:33:13 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-08-27 13:33:13 +0800 |
commit | 72690460fa1c2b10a2fc135aab434136664f8fd4 (patch) | |
tree | 824f6a156f592b8ffa4b3e26e75dbfbb1a547bfd /plugins/tnef-attachments/tnef-plugin.c | |
parent | 8683d227456da4b93de9bcffd873d54c73ebf3db (diff) | |
download | gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.gz gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.tar.zst gsoc2013-evolution-72690460fa1c2b10a2fc135aab434136664f8fd4.zip |
Avoid reentrancy in enable
svn path=/trunk/; revision=34111
Diffstat (limited to 'plugins/tnef-attachments/tnef-plugin.c')
-rw-r--r-- | plugins/tnef-attachments/tnef-plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |