hust: trivial simplification in builtin_type
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 May 2009 15:07:22 +0000 (17:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 May 2009 15:07:22 +0000 (17:07 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c

index 1d4470e..add40eb 100644 (file)
@@ -6762,10 +6762,8 @@ static int builtin_type(char **argv)
        int ret = EXIT_SUCCESS;
 
        while (*++argv) {
-               char *path;
                const char *type;
-
-               type = path = NULL;
+               char *path = NULL;
 
                if (0) {} /* make conditional compile easier below */
                /*else if (find_alias(*argv))