hush: trivial fix in debug code
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 23 Jun 2008 16:28:53 +0000 (16:28 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 23 Jun 2008 16:28:53 +0000 (16:28 -0000)
shell/hush.c

index 4d7d14b1a969869861fc1f46c0dfcee91c868e01..02eae7d5b099853d378ae68cdf45fdf9b01c869d 100644 (file)
@@ -2249,7 +2249,7 @@ static int free_pipe(struct pipe *pi, int indent)
                        debug_printf_clean("%s   (nil)\n", indenter(indent));
                }
                for (r = child->redirects; r; r = rnext) {
-                       debug_printf_clean("%s   redirect %d%s", indenter(indent), r->fd, redir_table[r->type].descrip);
+                       debug_printf_clean("%s   redirect %d%s", indenter(indent), r->fd, redir_table[r->rd_type].descrip);
                        if (r->dup == -1) {
                                /* guard against the case >$FOO, where foo is unset or blank */
                                if (r->rd_filename) {