summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:15 +0000
committerfcolin2007-02-01 13:00:15 +0000
commit80dc36e4b37ee8b6de9b9b3d6954f6ec11d43324 (patch)
tree911f2e91056baf3988a019d3269a8d8be4b33bcb /Ivy/IvyApplication.cxx
parent914228ac4531f1ea31ae2987ab875017a28e3b57 (diff)
downloadivy-cplusplus-80dc36e4b37ee8b6de9b9b3d6954f6ec11d43324.zip
ivy-cplusplus-80dc36e4b37ee8b6de9b9b3d6954f6ec11d43324.tar.gz
ivy-cplusplus-80dc36e4b37ee8b6de9b9b3d6954f6ec11d43324.tar.bz2
ivy-cplusplus-80dc36e4b37ee8b6de9b9b3d6954f6ec11d43324.tar.xz
Utilisateur : Fcolin Date : 14/06/05 Heure : 11:37 Archivé dans $/Bus/Ivy Commentaire: (vss 24)
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index 91a2d98..7ed553c 100644
--- a/Ivy/IvyApplication.cxx
+++ b/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 ) )