Fix "already done" test in libname_to_filename()

if "(libname == '\0')" should be instead "if (libname != '\0')"
master
Thomas Preud'homme 2010-04-20 16:19:54 +02:00
parent 4d5fcfb971
commit 6525a15919
1 changed files with 1 additions and 1 deletions

View File

@ -2830,7 +2830,7 @@ static int filename_to_libname(TCCState *s1, const char filename[], char libname
int libprefix;
/* already converted to library name */
if (libname[0] == '\0')
if (libname[0] != '\0')
return 1;
ext = tcc_fileextension(filename);
if (*ext == '\0')