From e98f68be9483d1b6abc2f9af0ba5995d42f65e62 Mon Sep 17 00:00:00 2001
From: Wolfgang Denk <wd@pollux.(none)>
Date: Wed, 28 Sep 2005 01:49:47 +0200
Subject: [PATCH] Fix uninitialized variable problem in hush shell Patch by
 Lars Rostock, 26 Sep 2005

---
 CHANGELOG     | 3 +++
 common/hush.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/CHANGELOG b/CHANGELOG
index 48ef16446b1..50abc49ea8a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes for U-Boot 1.1.4:
 ======================================================================
 
+* Fix uninitialized variable problem in hush shell
+  Patch by Lars Rostock, 26 Sep 2005
+
 * Undo change of f6e20fc6ca... to include/configs/trab.h
   (Must have been an accident?)
 
diff --git a/common/hush.c b/common/hush.c
index eb7f7f15606..c10b1176f65 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -2389,6 +2389,7 @@ struct pipe *new_pipe(void) {
 	pi->progs = NULL;
 	pi->next = NULL;
 	pi->followup = 0;  /* invalid */
+	pi->r_mode = RES_NONE;
 	return pi;
 }
 
-- 
GitLab