found it!!!! :)

SVN revision: 4242
This commit is contained in:
Carsten Haitzler 2001-02-17 22:06:30 +00:00
parent e486b98e93
commit 591a098daa
1 changed files with 4 additions and 2 deletions

View File

@ -868,12 +868,14 @@ __imlib_LoadAllLoaders(void)
ImlibLoader *
__imlib_FindBestLoaderForFile(const char *file)
{
char *extension, *lower;
char *extension, *lower, *rfile;
ImlibLoader *l = NULL;
/* use the file extension for a "best guess" as to what loader to try */
/* first at any rate */
extension = __imlib_FileExtension(file);
rfile = __imlib_FileRealFile(file);
extension = __imlib_FileExtension(rfile);
free(rfile);
/* change the extensiont o all lower case as all "types" are listed as */
/* lower case strings fromt he loader that represent all the possible */
/* extensions that file format could have */