summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/append.c4
-rw-r--r--Utilities/cmtar/extract.c2
-rw-r--r--Utilities/cmtar/libtar.c5
3 files changed, 6 insertions, 5 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c
index 6bcef98..cc845ab 100644
--- a/Utilities/cmtar/append.c
+++ b/Utilities/cmtar/append.c
@@ -65,8 +65,8 @@ tar_append_file(TAR *t, char *realname, char *savename)
{
struct stat s;
libtar_hashptr_t hp;
- tar_dev_t *td = NULL;
- tar_ino_t *ti = NULL;
+ tar_dev_t *td;
+ tar_ino_t *ti;
#if !defined(_WIN32) || defined(__CYGWIN__)
int i;
#else
diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c
index 2914b47..52afbed 100644
--- a/Utilities/cmtar/extract.c
+++ b/Utilities/cmtar/extract.c
@@ -329,7 +329,7 @@ int
tar_extract_hardlink(TAR * t, char *realname)
{
char *filename;
- char *linktgt = NULL;
+ char *linktgt;
linkname_t *lnp;
libtar_hashptr_t hp;
char buf[T_BLOCKSIZE];
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c
index a4c9741..e470da5 100644
--- a/Utilities/cmtar/libtar.c
+++ b/Utilities/cmtar/libtar.c
@@ -318,10 +318,10 @@ usage()
int
main(int argc, char *argv[])
{
- char *tarfile = NULL;
+ char* tarfile;
char *rootdir = NULL;
int c;
- int mode = 0;
+ int mode;
libtar_list_t *l;
#if defined(_WIN32) && !defined(__CYGWIN__)
int optind;
@@ -329,6 +329,7 @@ main(int argc, char *argv[])
progname = basename(argv[0]);
#if !defined(_WIN32) || defined(__CYGWIN__)
+ mode = 0;
while ((c = getopt(argc, argv, "cC:gtvVxz")) != -1)
switch (c)
{