summaryrefslogtreecommitdiffhomepage
path: root/src/internal/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-26 00:58:50 -0500
committermidipix <writeonce@midipix.org>2016-11-26 01:03:29 -0500
commit5fe98ffbf652449f98375c66a56e4c103592aecb (patch)
treecd1e8f3d3f213e613a298c67c743a3c1c6d4e6ad /src/internal/argv
parent0066a6df24267cc93167bed7da0a7f7d694d40f0 (diff)
downloadslibtool-5fe98ffbf652449f98375c66a56e4c103592aecb.tar.bz2
slibtool-5fe98ffbf652449f98375c66a56e4c103592aecb.tar.xz
argv.h: error code path: remove unneeded if statement (always true).
Diffstat (limited to 'src/internal/argv')
-rw-r--r--src/internal/argv/argv.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index c542f0e..ca1ceba 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -692,8 +692,7 @@ static struct argv_meta * argv_get(
argv_scan(argv,options,&ctx,0);
if (ctx.errcode != ARGV_ERROR_OK) {
- if (!ctx.program)
- ctx.program = argv_program_name(argv[0]);
+ ctx.program = argv_program_name(argv[0]);
if (ctx.flags & ARGV_VERBOSITY_ERRORS)
argv_show_error(&ctx);
@@ -708,9 +707,7 @@ static struct argv_meta * argv_get(
argv_scan(meta->argv,options,&ctx,meta);
if (ctx.errcode != ARGV_ERROR_OK) {
- if (!ctx.program)
- ctx.program = argv[0];
-
+ ctx.program = argv[0];
ctx.errcode = ARGV_ERROR_INTERNAL;
argv_show_error(&ctx);
argv_free(meta);