On Sat, Sep 13, 2008 at 07:06:06PM -0400, Oren Laadan wrote:
Why not?
| int i;
| int n = 0;
| int tot = CR_DEFAULT_FDTABLE;
IHMO easier readable.
The process is suspended at this state?
_NO_. tot is signed, this does not have documented overflow behaviour.
You need to restrict this to a sane number.
krealloc does not free the memory on error, so this is a leak.
Bastian
--
The more complex the mind, the greater the need for the simplicity of play.
-- Kirk, "Shore Leave", stardate 3025.8
--