[Top][All Lists]

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

Re: [PATCH 1/2] Fix some minor issues.

From: olafBuddenhagen
Subject: Re: [PATCH 1/2] Fix some minor issues.
Date: Sat, 26 Dec 2009 18:03:46 +0100
User-agent: Mutt/1.5.19 (2009-01-05)


On Thu, Dec 24, 2009 at 10:25:47PM +0200, Sergiu Ivanov wrote:

> Still, I somehow feel bad about copying from a pointer without doing
> an extra check.  Would it be an acceptable idea to assert (name) ?

Sure: if you think that something *should* be a certain way (non-NULL in
this case), but want to protect against the possibility that the
assumption was wrong after all, because of something that was overlooked
-- that's precisely what assert() is for :-)


reply via email to

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