From 95d7b37a34c9519b7ccc1063216527ccd2c2f833 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 5 Aug 2013 15:14:08 +0300 Subject: [PATCH] Minor changes * src/names.c (handle_option): Use program_invocation_short_name instead of the constant string. (read_next_name): Remove unused variable. --- src/names.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/names.c b/src/names.c index 4710848..f3a3536 100644 --- a/src/names.c +++ b/src/names.c @@ -402,7 +402,7 @@ handle_option (const char *str) if (wordsplit (str, &ws, WRDSF_DEFFLAGS|WRDSF_DOOFFS)) FATAL_ERROR ((0, 0, _("cannot split string '%s': %s"), str, wordsplit_strerror (&ws))); - ws.ws_wordv[0] = "tar"; + ws.ws_wordv[0] = program_invocation_short_name; more_options (ws.ws_wordc+ws.ws_offs, ws.ws_wordv); for (i = 0; i < ws.ws_wordc+ws.ws_offs; i++) ws.ws_wordv[i] = NULL; @@ -414,8 +414,6 @@ handle_option (const char *str) static int read_next_name (struct name_elt *ent, struct name_elt *ret) { - enum read_file_list_state read_state; - if (!ent->v.file.fp) { if (!strcmp (ent->v.file.name, "-")) -- 2.44.0