diff --git a/core2/Basetype2.cc b/core2/Basetype2.cc
index bb0401b7775eee6a6a6c8568716bfd4e2ceb29e5..c64223532b55dfc422db38327706e617fa71e295 100644
--- a/core2/Basetype2.cc
+++ b/core2/Basetype2.cc
@@ -1098,8 +1098,7 @@ int Record_Of_Type::TEXT_decode(const TTCN_Typedescriptor_t& p_td,
         return decoded_length;
       }
     } else if(limit.has_token(ml)){
-      int tl;
-      if((tl=limit.match(buff,ml))==0){
+      if(limit.match(buff,ml)==0){
         //sep_found=FALSE;
         break;
       }