File gear-2.0.3-set_var_value.patch of Package gear

diff -ur gear-2.0.3/gear-sh-functions.in gear-2.0.3-set_var_value/gear-sh-functions.in
--- gear-2.0.3/gear-sh-functions.in	2013-05-21 23:52:29.000000000 +0300
+++ gear-2.0.3-set_var_value/gear-sh-functions.in	2014-08-11 01:37:02.000000000 +0300
@@ -69,7 +69,7 @@
 # 2ns arg is the name of variable that contains the value to be assigned.
 set_var_value()
 {
-	eval "$1=\"\$$2\""
+	eval "$1=\"\${$2-}\""
 }
 
 lineno=
openSUSE Build Service is sponsored by