nsresult analysis
Posted in Uncategorized on March 31st, 2009 4 Comments »
After I wrote prcheck, I was surprised by the errors it found. I expected to find lots of cases of prbool variables having integers assigned into them. Indeed there were some of those, but the most frequent offenders were things like NS_ENSURE_SUCCESS(rv,rv); in methods with a PRBool return value. In this case (and many similarĀ [...]