summaryrefslogtreecommitdiff
path: root/plugins/Variables
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Variables')
-rw-r--r--plugins/Variables/src/parse_regexp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Variables/src/parse_regexp.cpp b/plugins/Variables/src/parse_regexp.cpp
index 3b8679de6b..2792cf05e5 100644
--- a/plugins/Variables/src/parse_regexp.cpp
+++ b/plugins/Variables/src/parse_regexp.cpp
@@ -64,9 +64,9 @@ static TCHAR *parseRegExpSubstr(ARGUMENTSINFO *ai)
if (ai->argc != 4)
return NULL;
- ptrA arg1 = mir_t2a(ai->targv[1]);
- ptrA arg2 = mir_t2a(ai->targv[2]);
- ptrA arg3 = mir_t2a(ai->targv[3]);
+ ptrA arg1( mir_t2a(ai->targv[1]));
+ ptrA arg2( mir_t2a(ai->targv[2]));
+ ptrA arg3( mir_t2a(ai->targv[3]));
number = atoi(arg3);
if (number < 0)