pax(1): Remove dead initialization.
authorSascha Wildner <saw@online.de>
Sat, 24 Oct 2009 08:13:53 +0000 (10:13 +0200)
committerSascha Wildner <saw@online.de>
Sat, 24 Oct 2009 08:13:53 +0000 (10:13 +0200)
bin/pax/ar_io.c
bin/pax/options.c
bin/pax/pat_rep.c

index c14a738..a79db35 100644 (file)
@@ -644,7 +644,7 @@ ar_write(char *buf, int bsz)
                        break;
                if (errno == EACCES) {
                        paxwarn(0, "Write failed, archive is write protected.");
-                       res = lstrval = 0;
+                       lstrval = 0;
                        return(0);
                }
                /*
index a36c404..7034a32 100644 (file)
@@ -1365,7 +1365,7 @@ opt_add(char *str)
                paxwarn(0, "Unable to allocate space for option list");
                return(-1);
        }
-       frpt = endpt = str;
+       frpt = str;
 
        /*
         * break into name and values pieces and stuff each one into a
index 6d0b40b..b1d673a 100644 (file)
@@ -497,7 +497,7 @@ fn_match(char *pattern, char *string, char **pend)
                        *pend = string;
                        return(0);
                case '?':
-                       if ((test = *string++) == '\0')
+                       if (*string++ == '\0')
                                return (-1);
                        break;
                case '*':
@@ -517,7 +517,7 @@ fn_match(char *pattern, char *string, char **pend)
                        /*
                         * General case, use recursion.
                         */
-                       while ((test = *string) != '\0') {
+                       while (*string != '\0') {
                                if (!fn_match(pattern, string, pend))
                                        return (0);
                                ++string;