Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PROLINT is fucking shit

Name: Anonymous 2008-10-16 10:10

so suppose I have

arbitrary_struct* foo = NULL;
int continuing = 1;

if (NULL == ( foo = dicks_everywhere() ) )
{
  continuing = 0;
}

if (continuing && NULL != foo->loldongs )
{
  perform_dickbutt();
}

PROLINT argues that foo might be NULL in the second if YET IT OBVIOUSLY CAN'T because continuing equals zero and the right hand term of && isn't evaluated at all.

fucking hell

Name: OP 2008-10-17 4:23

>>6
The point is, you can have an arbitrary amount of sanity checks in the beginning of the function and use the continuing variable to keep track of the status. The two other, and worse, methods are to have a shitload of nested ifs or goto errors.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List