Suspicous code in kdelibs-3.5.2

Waldo Bastian bastian at kde.org
Fri Apr 7 06:02:04 BST 2006


On Wednesday 05 April 2006 08:19, George Staikos wrote:
> On Wednesday 05 April 2006 10:26, Christoph Bartoschek wrote:
> > - kio/misc/kwalletd/kwalletd.cpp:430
> >
> > Line 414 indicates that kpd can be NULL. When the while loop at line 420
> > is entered line 424 crashes.
>
>   I guess my code is too tricky for your tool. :-)  The only way that kpd
> can be null is if "b->isOpen()" (and some other criteria).  Maybe
> misleading, but not a bug.

Make sure to add some comments then that explain your assumptions and why the 
code is valid.

Cheers,
Waldo
-- 
Linux Client Architect - Channel Platform Solutions Group - Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060406/af50bb11/attachment.sig>


More information about the kde-core-devel mailing list