Minor optimization

This commit is contained in:
Pierre Pronchery 2008-03-12 01:03:13 +00:00
parent 92247055fa
commit ada596ecf5

View File

@ -99,7 +99,9 @@ static char * _new_outfile(int flags, char const * outfile,
} }
if(flags & C99PREFS_E && outfile == NULL) if(flags & C99PREFS_E && outfile == NULL)
outfile = ""; outfile = "";
if((ret = strdup(outfile != NULL ? outfile : "a.out")) == NULL) else if(outfile == NULL)
outfile = "a.out";
if((ret = strdup(outfile)) == NULL)
{ {
error_set_code(1, "%s", strerror(errno)); error_set_code(1, "%s", strerror(errno));
return NULL; return NULL;