# HG changeset patch # User Mark Doliner # Date 1056868817 0 # Node ID 53782414bc3a23271702fb5a942774d08e2452e3 # Parent c36b3c654761bb87842fc64d0cb25b1ba862e9ae [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" committer: Tailor Script diff -r c36b3c654761 -r 53782414bc3a src/plugin.c --- 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)