It still seems like it's bad to turn *possible* UB (which won't happen if your memory is full) into incorrect code. I mean, that doesn't even comply with the shitty ANSI standard, does it?
Maybe calloc(n,m), then attempt to open a file, and on failure, free and return.
-
-
well, in that case there'd presumably also be a success path, so the return value would end up being used. maybe if somehow the calloc got code-motioned into the failure branch?? seems unlikely...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.