svashisht / rpms / bash

Forked from rpms/bash 6 years ago
Clone
e26a2b6
diff --git a/patchlevel.h b/patchlevel.h
e26a2b6
--- a/patchlevel.h
e26a2b6
+++ b/patchlevel.h
e26a2b6
@@ -25,6 +25,6 @@
e26a2b6
    regexp `^#define[ 	]*PATCHLEVEL', since that's what support/mkversion.sh
e26a2b6
    looks for to find the patch level (for the sccs version string). */
e26a2b6
 
e26a2b6
-#define PATCHLEVEL 0
e26a2b6
+#define PATCHLEVEL 1
e26a2b6
 
e26a2b6
 #endif /* _PATCHLEVEL_H_ */
e26a2b6
diff --git a/subst.c b/subst.c
e26a2b6
index d9feabca..93b91606 100644
e26a2b6
--- a/subst.c
e26a2b6
+++ b/subst.c
e26a2b6
@@ -10857,7 +10857,7 @@ expand_array_subscript (string, sindex, quoted, flags)
e26a2b6
   exp = substring (string, si+1, ni);
e26a2b6
   t = expand_subscript_string (exp, quoted & ~(Q_ARITH|Q_DOUBLE_QUOTES));
e26a2b6
   free (exp);
e26a2b6
-  exp = sh_backslash_quote (t, abstab, 0);
e26a2b6
+  exp = t ? sh_backslash_quote (t, abstab, 0) : savestring ("");
e26a2b6
   free (t);
e26a2b6
 
e26a2b6
   slen = STRLEN (exp);