From 68565d28dbbdfa6d073328347815306dd96b37a6 Mon Sep 17 00:00:00 2001 From: ph10 Date: Mon, 12 Nov 2007 16:53:25 +0000 Subject: Apply Craig's patch, which makes it possible to "ignore" values in parens when parsing an RE using the c++ wrapper. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@263 2f5784b3-3f2a-0410-8824-cb99058d5e15 --- pcrecpparg.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'pcrecpparg.h.in') diff --git a/pcrecpparg.h.in b/pcrecpparg.h.in index 83cc44b..61bcab5 100644 --- a/pcrecpparg.h.in +++ b/pcrecpparg.h.in @@ -48,6 +48,7 @@ template class _RE_MatchObject { public: static inline bool Parse(const char* str, int n, void* dest) { + if (dest == NULL) return true; T* object = reinterpret_cast(dest); return object->ParseFrom(str, n); } -- cgit v1.2.1