lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #20478] memp_malloc returns bogus value on malloc fail


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #20478] memp_malloc returns bogus value on malloc failure
Date: Sat, 14 Jul 2007 16:49:39 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #12, bug #20478 (project lwip):

re comment #11:

Exactly, that's how I'd think it would be better.

> But it increase a little bit the footprint ("more" if
SYS_LIGHTWEIGHT_PROT=1).

Does it? It's one 'if' statement less, which means less code.
We could argue here if the if statement is more code than the 'return NULL'
or the 'SYS_ARCH_UNPROTECT'... For a good compiler, this probably wouldn't
make a difference, but why not help the other compilers?

After all, I think the code is better to read that way.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20478>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]