From 91d67da8d4a1403cab5fe63dc555880b64a80061 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Tue, 19 May 2015 14:55:37 -0400 Subject: Bash-4.3 patch 36 Change-Id: I1aac05a3a8379b443a960a248db390f05ea68f8a --- patchlevel.h | 2 +- variables.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/patchlevel.h b/patchlevel.h index f457723..04f2973 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -25,6 +25,6 @@ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh looks for to find the patch level (for the sccs version string). */ -#define PATCHLEVEL 35 +#define PATCHLEVEL 36 #endif /* _PATCHLEVEL_H_ */ diff --git a/variables.c b/variables.c index 1f7be5e..f39eb64 100644 --- a/variables.c +++ b/variables.c @@ -2833,10 +2833,12 @@ bind_int_variable (lhs, rhs) #endif v = bind_variable (lhs, rhs, 0); - if (v && isint) - VSETATTR (v, att_integer); - - VUNSETATTR (v, att_invisible); + if (v) + { + if (isint) + VSETATTR (v, att_integer); + VUNSETATTR (v, att_invisible); + } return (v); } -- cgit v1.2.3