The doomsday title reminded me of the world's last C bug:
while (1)
{
status = GetRadarInfo();
if (status = 1)
LaunchMissiles();
}