diff --git a/src/util.cpp b/src/util.cpp
index a524922..d09cac6 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -3665,7 +3665,7 @@ bool matchArguments2(Definition *srcScope,FileDef *srcFileScope,ArgumentList *sr
   // all arguments.
   ArgumentListIterator srcAli(*srcAl),dstAli(*dstAl);
   Argument *srcA,*dstA;
-  for (;(srcA=srcAli.current(),dstA=dstAli.current());++srcAli,++dstAli)
+  for ((srcA=srcAli.current(),dstA=dstAli.current()); srcA && dstA; ++srcAli,++dstAli)
   { 
     if (!matchArgument2(srcScope,srcFileScope,srcA,
           dstScope,dstFileScope,dstA)
