4 ms·
For consideration, "declare variable" is just that; one could still choose to only assign to it after having done the validation (assuming fatal_f causes contro
by mdaniel 5y ago
For consideration, "declare variable" is just that; one could still choose to only assign to it after having done the validation (assuming fatal_f causes control flow termination)
struct pollfd *pfd;
if (p == -1 || (u_int)p >= npfd)
fatal_f("channel %d: bad pfd %d (max %u)", c->self, p, npfd);
pfd = &pfds[p];
right?
- fullstop 5y agoA good compiler would produce the same code in both cases.