array: avoid crash on unset variable
commite436dbdf4e0c917695cacf6674ae9997faa1b6ff
authorSteve Bennett <steveb@workware.net.au>
Wed, 23 Apr 2014 00:13:16 +0000 (23 10:13 +1000)
committerSteve Bennett <steveb@workware.net.au>
Wed, 23 Apr 2014 04:36:24 +0000 (23 14:36 +1000)
tree45d7339abd977d64f23e5a12f9642cb6f858c7d1
parent1aa2d1d9e78a6b3d566a7c1cd57ac38d8bcc00f7
array: avoid crash on unset variable

Fix the case where the variable does not exist and a pattern is specified.

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim-array.c
regtest.tcl