summaryrefslogtreecommitdiff
path: root/src/bin/embryo/embryo_cc_sc3.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 18:27:07 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 20:14:58 +0900
commit14008d3111168343fe22d99dfd0aa7c9020968f3 (patch)
tree1bbd8a50a1a85af5bbf135b4c1b53da2fa6d6e64 /src/bin/embryo/embryo_cc_sc3.c
parente9afad0b07b1c003f2899cf3e2d4209fe19eb0d0 (diff)
embryo_cc - fix uselss array existance check
fix CID 1039345
Diffstat (limited to 'src/bin/embryo/embryo_cc_sc3.c')
-rw-r--r--src/bin/embryo/embryo_cc_sc3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/embryo/embryo_cc_sc3.c b/src/bin/embryo/embryo_cc_sc3.c
index 303ae688b4..310055c73e 100644
--- a/src/bin/embryo/embryo_cc_sc3.c
+++ b/src/bin/embryo/embryo_cc_sc3.c
@@ -1094,8 +1094,7 @@ hier13(value * lval)
1094 array2 = (lval2.ident == iARRAY || lval2.ident == iREFARRAY); 1094 array2 = (lval2.ident == iARRAY || lval2.ident == iREFARRAY);
1095 if (array1 && !array2) 1095 if (array1 && !array2)
1096 { 1096 {
1097 char *ptr = 1097 char *ptr = lval->sym->name;
1098 (lval->sym->name) ? lval->sym->name : "-unknown-";
1099 error(33, ptr); /* array must be indexed */ 1098 error(33, ptr); /* array must be indexed */
1100 } 1099 }
1101 else if (!array1 && array2) 1100 else if (!array1 && array2)