[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 22:55:37
Message-ID: ghcbha$633$1 () ger ! gmane ! org
[Download RAW message or body]
Thiago Macieira wrote:
> [snip]
> The point is:
>
> void * foo = 0;
> isn't necessarily the same as:
>
> void * foo;
> memset(&foo, 0, sizeof foo);
Um... in that case I'm not too horribly worried about platforms with
extremely esoteric ways of storing integers :-).
I've certainly seen code that assumes a "cleared" block of memory means
that any of that memory cast as a pointer gives NULL (e.g.
calloc(sizeof(foo)), where foo is a struct containing pointers).
--
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