I found an empty for statement in an existing bit of code and I\'m wondering what it does and is it \"safe\". It just feels wrong.
for(;;)
{
//some if sta
It's valid syntax for an infinite loop. You need to "break;" out of it. This was popular back in the C++ days IIRC.
As far as being safe, you're right in feeling "wrong" about this. Usually there would be an "if" condition inside where you would decide if you continue or break the loop. If you don't verify all execution paths it could very well lead to an infinite loop. I would try and do this some other way.