diff --git a/shell/hush.c b/shell/hush.c
index 1d4470efa..add40eb5f 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -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))