Package: cppcheck
Version: 1.38-1

Hi,

The attached example demonstrates a false positive and false negative I found 
in cppcheck.

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
void c_open(void)
{
        int f, fd = -1;

        for (f = 0; f < 5; f++) {
                if ((fd = open("/dev/null", O_RDONLY)) >= 0) break;
        }
}

Reply via email to