Fix "already done" test in libname_to_filename()
if "(libname == '\0')" should be instead "if (libname != '\0')"
This commit is contained in:
2
tccelf.c
2
tccelf.c
@ -2830,7 +2830,7 @@ static int filename_to_libname(TCCState *s1, const char filename[], char libname
|
|||||||
int libprefix;
|
int libprefix;
|
||||||
|
|
||||||
/* already converted to library name */
|
/* already converted to library name */
|
||||||
if (libname[0] == '\0')
|
if (libname[0] != '\0')
|
||||||
return 1;
|
return 1;
|
||||||
ext = tcc_fileextension(filename);
|
ext = tcc_fileextension(filename);
|
||||||
if (*ext == '\0')
|
if (*ext == '\0')
|
||||||
|
|||||||
Reference in New Issue
Block a user