svashisht / rpms / bash

Forked from rpms/bash 4 years ago
Clone

Blame SOURCES/bash-4.2-double-alloc.patch

ff19ae
--- bash-4.1/subst.c	2015-04-07 10:00:00.482931289 +0900
ff19ae
+++ bash-4.1/subst.c	2015-04-07 10:01:28.258111134 +0900
ff19ae
@@ -7039,8 +7039,6 @@ 
ff19ae
 
ff19ae
       ret = alloc_word_desc ();
ff19ae
       ret->word = temp1;
ff19ae
-      ret = alloc_word_desc ();
ff19ae
-      ret->word = temp1;
ff19ae
       if (temp1 && QUOTED_NULL (temp1) && (quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)))
ff19ae
 	ret->flags |= W_QUOTED|W_HASQUOTEDNULL;
ff19ae
       return ret;