nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] too many uninitialized variables in nmh-1.1 RC4


From: Valdis . Kletnieks
Subject: Re: [Nmh-workers] too many uninitialized variables in nmh-1.1 RC4
Date: Fri, 25 Nov 2005 20:25:47 -0500

On Thu, 24 Nov 2005 11:11:50 PST, Norman Shapiro said:

> I often have a manfiest constant WHO_CARES,
> 
> #define WHO_CARES (void*)012345

#define WHO_CARES 0xdeadbeef

int foo = WHO_CARES;

Has the advantage that if you *do* make it through the code without actually
setting a known good value, you'll probably get a SIGSEGV or other blatantly
obvious indication that things have gone very very awry. '12345' doesn't always
do that for you....

Attachment: pgp3s3P1V_I11.pgp
Description: PGP signature


reply via email to

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