fixed Segfault in decmatch confomance test cases (artf764443)
authorebensza <bence.janos.szabo@ericsson.com>
Mon, 1 Aug 2016 12:57:45 +0000 (14:57 +0200)
committerebensza <bence.janos.szabo@ericsson.com>
Mon, 1 Aug 2016 13:03:08 +0000 (15:03 +0200)
Change-Id: I5582f6b2286c1404e7c0f6645caf7b734b24ae83
Signed-off-by: ebensza <bence.janos.szabo@ericsson.com>
compiler2/Value.cc

index f4400bcd00bb031e45a0c85d23e9cdcbdf55789b..56a05debd9441488a562d67e3a32a0b7a0936572 100644 (file)
@@ -952,6 +952,8 @@ namespace Common {
     case OPTYPE_TTCN2STRING:
       if(!p_ti1) FATAL_ERROR("Value::Value()");
       u.expr.ti1=p_ti1;
+      // Needed in the case of OPTYPE_ENCVALUE_UNICHAR
+      u.expr.v2=NULL;
       break;
     default:
       FATAL_ERROR("Value::Value()");
@@ -1342,6 +1344,8 @@ namespace Common {
       if(!p_r1 || !p_r2) FATAL_ERROR("Value::Value()");
       u.expr.r1=p_r1;
       u.expr.r2=p_r2;
+      // Needed in the case of OPTYPE_DECVALUE_UNICHAR
+      u.expr.v3=NULL;
       break;
     default:
       FATAL_ERROR("Value::Value()");
This page took 0.031459 seconds and 5 git commands to generate.