Fix "already done" test in libname_to_filename()
if "(libname == '\0')" should be instead "if (libname != '\0')"
This commit is contained in:
parent
4d5fcfb971
commit
6525a15919
1 changed files with 1 additions and 1 deletions
2
tccelf.c
2
tccelf.c
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue