summaryrefslogtreecommitdiff
path: root/Bus/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:15 +0000
committerfcolin2007-02-01 13:00:15 +0000
commitd21bcdabfc52f77325a7683e8e121f950daf4abc (patch)
treebeb6195afcadab40ca6e446bc9ba2a17e8c7b750 /Bus/Ivy
parentf6314571ae921d623391dbc2856123860f860b1f (diff)
downloadivy-cplusplus-d21bcdabfc52f77325a7683e8e121f950daf4abc.zip
ivy-cplusplus-d21bcdabfc52f77325a7683e8e121f950daf4abc.tar.gz
ivy-cplusplus-d21bcdabfc52f77325a7683e8e121f950daf4abc.tar.bz2
ivy-cplusplus-d21bcdabfc52f77325a7683e8e121f950daf4abc.tar.xz
Utilisateur : Fcolin Date : 14/06/05 Heure : 11:37 Archivé dans $/Bus/Ivy Commentaire: (vss 24)
Diffstat (limited to 'Bus/Ivy')
-rw-r--r--Bus/Ivy/IvyApplication.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx
index 91a2d98..7ed553c 100644
--- a/Bus/Ivy/IvyApplication.cxx
+++ b/Bus/Ivy/IvyApplication.cxx
@@ -346,7 +346,12 @@ int IvyApplication::SendMsg(const char *message)
{
ivy::string buffer;
const char **substring;
- pcre_get_substring_list(message,ovector, match_count, &substring);
+ int err = pcre_get_substring_list(message,ovector, match_count, &substring);
+ if ( err != 0 )
+ {
+ SendMsg( Error, Error, "Memory Alloc Error" );
+ }
+ else {
for ( int j = 1; j < match_count; j++ )
{
buffer += substring[j];
@@ -355,6 +360,7 @@ int IvyApplication::SendMsg(const char *message)
pcre_free_substring_list(substring);
SendMsg( Msg, i, buffer.c_str() );
count++;
+ }
}
#else
if ( exp && exp->Match( message ) )