Was not using the specified output filename with -c
This commit is contained in:
parent
1a1d24c6e4
commit
5930c622d1
@ -111,7 +111,7 @@ static char * _new_outfile(int flags, char const * outfile,
|
|||||||
char * ret;
|
char * ret;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
if(flags & C99PREFS_c && pathname != NULL)
|
if(flags & C99PREFS_c && outfile == NULL && pathname != NULL)
|
||||||
{
|
{
|
||||||
if((len = strlen(pathname)) < 3 || pathname[len - 2] != '.'
|
if((len = strlen(pathname)) < 3 || pathname[len - 2] != '.'
|
||||||
|| pathname[len - 1] != 'c')
|
|| pathname[len - 1] != 'c')
|
||||||
|
Loading…
Reference in New Issue
Block a user