[gaim-migrate @ 6420]

Sun, 29 Jun 2003 06:40:17 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sun, 29 Jun 2003 06:40:17 +0000
changeset 5973
adc75f0fcaa3
parent 5972
12590f3b80ad
child 5974
00c68435d9f3

[gaim-migrate @ 6420]
This makes Gaim not crash when importing a .gaimrc file that contains
a perl script that does not exist. It might fix other related crashes--
I'm not really sure what uses gaim_plugin_probe, exactly.

Basically I added a check "if plugin file doesn't exist then do nothing"

src/plugin.c file | annotate | diff | comparison | revisions
--- a/src/plugin.c	Sun Jun 29 06:16:16 2003 +0000
+++ b/src/plugin.c	Sun Jun 29 06:40:17 2003 +0000
@@ -183,6 +183,9 @@
 
 	g_return_val_if_fail(filename != NULL, NULL);
 
+	if (!g_file_test(filename, G_FILE_TEST_EXISTS))
+		return NULL;
+
 	plugin = gaim_plugins_find_with_filename(filename);
 
 	if (plugin != NULL)

mercurial