dab371 argv.h: error code path: remove unneeded if statement (always true).

Authored and Committed by midipix 8 years ago
    argv.h: error code path: remove unneeded if statement (always true).
    
        
file modified
+2 -5
src/internal/argv/argv.h CHANGED
@@ -692,8 +692,7 @@ static struct argv_meta * argv_get(
692
692
argv_scan(argv,options,&ctx,0);
693
693
694
694
if (ctx.errcode != ARGV_ERROR_OK) {
695
- if (!ctx.program)
695
+ ctx.program = argv_program_name(argv[0]);
696
- ctx.program = argv_program_name(argv[0]);
697
696
698
697
if (ctx.flags & ARGV_VERBOSITY_ERRORS)
699
698
argv_show_error(&ctx);
@@ -708,9 +707,7 @@ static struct argv_meta * argv_get(
708
707
argv_scan(meta->argv,options,&ctx,meta);
709
708
710
709
if (ctx.errcode != ARGV_ERROR_OK) {
711
- if (!ctx.program)
710
+ ctx.program = argv[0];
712
- ctx.program = argv[0];
713
-
714
711
ctx.errcode = ARGV_ERROR_INTERNAL;
715
712
argv_show_error(&ctx);
716
713
argv_free(meta);