comparison plugins/perl/perl.c @ 8095:4396d1088273

[gaim-migrate @ 8794] "It was reported in #gaim yesterday that errors occurred when trying to load a perl plugin containing a '-' char in the filename. It turns out that the code for cleaning up to filename in order for it to become part of the package name had a little bug." --Daniel Atallah committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 13 Jan 2004 16:05:38 +0000
parents eb95f31fa4eb
children 3e8592b95f68
comparison
equal deleted inserted replaced
8094:d3a51be0d5a3 8095:4396d1088273
225 if (c != NULL) 225 if (c != NULL)
226 *c = '\0'; 226 *c = '\0';
227 227
228 for (c = name; *c != '\0'; c++) 228 for (c = name; *c != '\0'; c++)
229 { 229 {
230 if (*c == '_' && !g_ascii_isalnum(*c)) 230 if (*c != '_' && !g_ascii_isalnum(*c))
231 *c = '_'; 231 *c = '_';
232 } 232 }
233 } 233 }
234 234
235 static gboolean 235 static gboolean