From 642469b93fed89f5fa2d3f7b6cf4515ff2136c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 5 Dec 2009 17:37:30 +0100 Subject: [PATCH] Fixed #1044 (Access violation with --enable=all) --- lib/checkexceptionsafety.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/checkexceptionsafety.cpp b/lib/checkexceptionsafety.cpp index 80ce3ab72..6dba9914b 100644 --- a/lib/checkexceptionsafety.cpp +++ b/lib/checkexceptionsafety.cpp @@ -93,6 +93,8 @@ void CheckExceptionSafety::unsafeNew() if (tok->str() != ")") continue; tok = tok->next(); + if (!tok) + break; if (tok->str() != ":") continue;