Skip to content

Commit

Permalink
Bug 736385 - [PATCH] Fix potential null pointer dereference in src/ut…
Browse files Browse the repository at this point in the history
…il.cpp
  • Loading branch information
Dimitri van Heesch committed Sep 23, 2014
1 parent 23bc555 commit 24b5b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3236,7 +3236,7 @@ bool matchArguments(ArgumentList *srcAl,ArgumentList *dstAl,
// 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());++srcAli,++dstAli)
{
if (!matchArgument(srcA,dstA,className,namespaceName,
usingNamespaces,usingClasses))
Expand Down

0 comments on commit 24b5b71

Please sign in to comment.