[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [Patch] Fix undeleted "static QFont *_font" in kglobalsettings.cpp
From: Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date: 2008-12-05 19:09:42
Message-ID: ghbu9m$lbc$1 () ger ! gmane ! org
[Download RAW message or body]
Johannes Sixt wrote:
> Wait a second. Where is it written that the null pointer has the same bit
> pattern as sizeof(pointer) consecutive unsigned chars with value '\0'? Hm?
> memset is *wrong*.
In that sense, so is using 'if (foo)' versus 'if (foo != null)', yes?
NULL != 0 would probably break quite a lot of code :-).
(And... that said, I'm actually not sure that NULL == 0 *isn't* codified
somewhere.)
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
For great justice!! -- Captain (Zero Wing)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic