aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-04-01 12:54:05 -0500
committerRob Landley <rob@landley.net>2019-04-01 12:54:05 -0500
commit56e3076ce3fa931946857514f02b5a65e90152a6 (patch)
tree03f4d183acff13dba869ab9c5b2a047275a772ed
parentc8de117f1c0c9cd77333c88b0182aab63d381154 (diff)
downloadtoybox-56e3076ce3fa931946857514f02b5a65e90152a6.tar.gz
Silence spurious gcc "lnk cannot be used uninitialized" warning.
-rw-r--r--toys/pending/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/tar.c b/toys/pending/tar.c
index 7d688241..7cad2729 100644
--- a/toys/pending/tar.c
+++ b/toys/pending/tar.c
@@ -175,7 +175,7 @@ static int add_to_tar(struct dirtree *node)
struct passwd *pw = pw;
struct group *gr = gr;
int i, fd =-1;
- char *c, *p, *name, *lnk, *hname;
+ char *c, *p, *name, *lnk = lnk, *hname;
if (!dirtree_notdotdot(node)) return 0;
if (TT.adev == st->st_dev && TT.aino == st->st_ino) {