2 ms·
What about while (f()) { free(p); p = NULL; }
by bonzini 7y ago
What about
while (f()) {
free(p);
p = NULL;
}
- WalterBright 7y agoIt'll compile because although free(p) consumes p and p is undefined immediately afterwards, p then becomes defined again via the assignment and so the while loop always enters with a defined value for p.