From ada596ecf5dc1708e9e12762daed06255105715b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 12 Mar 2008 01:03:13 +0000 Subject: [PATCH] Minor optimization --- src/c99.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c99.c b/src/c99.c index 389a5d1..dfb212d 100644 --- a/src/c99.c +++ b/src/c99.c @@ -99,7 +99,9 @@ static char * _new_outfile(int flags, char const * outfile, } if(flags & C99PREFS_E && outfile == NULL) 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)); return NULL;