From 420bfcfc66d7419632068f1b8e3a368198ecab7f Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Sat, 27 Jun 2015 17:46:03 +0100
Subject: 35623: All is_array assignments should be treated as having a value.
---
Src/zsh.h | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
(limited to 'Src/zsh.h')
diff --git a/Src/zsh.h b/Src/zsh.h
index ee0609483..ce9b97903 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1162,13 +1162,11 @@ struct asgment {
/*
* Assignment has value?
- * We need to arrange for each of the values
- * to be the same type or the compiler will
- * get fed up.
+ * If the assignment is an arrray, then it certainly has a value --- we
+ * can only tell if there's an expicit assignment.
*/
-#define ASG_VALUEP(asg) (ASG_ARRAYP(asg) ? \
- ((asg)->value.array != (LinkList)0) : \
+#define ASG_VALUEP(asg) (ASG_ARRAYP(asg) || \
((asg)->value.scalar != (char *)0))
/* node in command path hash table (cmdnamtab) */
--
cgit 1.4.1