BAIN strikes back

11 Aug 2008
Posted by bain

This is what i found amongst teamgit code : int ret;
again:
     while(1){
         ret =::read(pty.masterFd(),data,1023);
         array.append(data);
         if(ret != 0)
               break;
         goto again;
      }

Can you spot the silly BAIN DOING with goto?

The commit log 3f892c3e... now reads

"Removed ediotic goto DUH!!"

 

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.