diff options
Diffstat (limited to 'pcrecpparg.h.in')
-rw-r--r-- | pcrecpparg.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
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 T> class _RE_MatchObject { public: static inline bool Parse(const char* str, int n, void* dest) { + if (dest == NULL) return true; T* object = reinterpret_cast<T*>(dest); return object->ParseFrom(str, n); } |