From 34bfb313cd341ffba7e1c34cdc5f2aabc7cd8ec5 Mon Sep 17 00:00:00 2001 From: jilles Date: Thu, 25 Jul 2013 13:09:17 +0000 Subject: sh: Remove output.c's reset() handler. These cleanup operations are not needed because they are already performed after an optimized command substitution (whether there was an error or not). --- bin/sh/output.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'bin') diff --git a/bin/sh/output.c b/bin/sh/output.c index d26adce..bf8e17d 100644 --- a/bin/sh/output.c +++ b/bin/sh/output.c @@ -75,25 +75,6 @@ struct output memout = {NULL, 0, NULL, 0, MEM_OUT, 0}; struct output *out1 = &output; struct output *out2 = &errout; - - -#ifdef mkinit - -INCLUDE "output.h" -INCLUDE "memalloc.h" - -RESET { - out1 = &output; - out2 = &errout; - if (memout.buf != NULL) { - ckfree(memout.buf); - memout.buf = NULL; - } -} - -#endif - - void outcslow(int c, struct output *file) { -- cgit v1.1