Florin Popescu wrote:
> Hello,

Hi Florin,


> I have problems using assign_to in regexp. In version 182 worked like
>  the documentation said, but when i tried version 223 or 253 seemed 
> not to work as before.
> 
> If i use assign_to="1", I get a segmentation fault, and if use 
> assign_to="2,3" I get an error message.
> 

I think a small bug somehow got into the trunk version. It can be fixed
with something like:

--- scenario.cpp        (revision 246)
+++ scenario.cpp        (working copy)
@@ -1181,7 +1181,6 @@
        if(!(ptr = xp_get_value((char *)"regexp"))) {
         ERROR("'ereg' action without 'regexp' argument (mandatory)");
        }
-      int currentVarId;

        // keeping regexp expression in memory
        if(currentRegExp != NULL)
@@ -1243,7 +1242,7 @@
         tmpAction->setCheckIt(false);
        }

-      currentVarId = xp_get_var("assign_to", "ereg");
+      ptr = xp_get_value((char*)"assign_to");

        if(createIntegerTable(ptr, &currentTabVarId, &currentNbVarId) ==
1) { xp_use_var(currentTabVarId[0]);


This is fixed in the 2.0 branch, so you could use that version until it
gets corrected in the trunk.

Monica

> Thank you, Florin
> 
> 
> -------------------------------------------------------------------------
>  This SF.net email is sponsored by DB2 Express Download DB2 Express C
>  - the FREE version of DB2 express and take control of your XML. No 
> limits. Just data. Click to get it now. 
> http://sourceforge.net/powerbar/db2/ 
> _______________________________________________ Sipp-users mailing 
> list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/sipp-users

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to