Always normalize the module name.

This commit is contained in:
Adam Jackson 2007-02-06 21:22:49 -05:00
parent 9a1c6afd12
commit 0a63d874e9
2 changed files with 0 additions and 8 deletions

View File

@ -2429,12 +2429,8 @@ xf86LoadOneModule(char *name, pointer opt)
if (!name)
return NULL;
#ifndef NORMALISE_MODULE_NAME
Name = xstrdup(name);
#else
/* Normalise the module name */
Name = xf86NormalizeName(name);
#endif
/* Skip empty names */
if (Name == NULL)

View File

@ -1769,12 +1769,8 @@ xf86LoadModules(char **list, pointer *optlist)
for (i = 0; list[i] != NULL; i++) {
#ifndef NORMALISE_MODULE_NAME
name = xstrdup(list[i]);
#else
/* Normalise the module name */
name = xf86NormalizeName(list[i]);
#endif
/* Skip empty names */
if (name == NULL || *name == '\0')