Author: jilles
Date: Thu Jul 25 13:09:17 2013
New Revision: 253649
URL: http://svnweb.freebsd.org/changeset/base/253649

Log:
  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).

Modified:
  head/bin/sh/output.c

Modified: head/bin/sh/output.c
==============================================================================
--- head/bin/sh/output.c        Thu Jul 25 12:43:22 2013        (r253648)
+++ head/bin/sh/output.c        Thu Jul 25 13:09:17 2013        (r253649)
@@ -75,25 +75,6 @@ struct output memout = {NULL, 0, NULL, 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)
 {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to