Even though the source code is valid C, its effect is undefined with all those uninitilized locals. And when 'foundfiles' is initialized the problem goes away.
int m()
{
int foundfiles /* = 0 */ ;
if (...)
foundfiles++;
if (!foundfiles)
....
}
Lowering priority as it only occurs for flawd code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Even though the source code is valid C, its effect is undefined with all those uninitilized locals. And when 'foundfiles' is initialized the problem goes away.
Lowering priority as it only occurs for flawd code.