Fixed typo - was raising exception for non NULL pointer rather than NULL

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-04-23 13:00:17 +00:00
parent 1c43499ee6
commit 2a8a1084f3

View file

@ -126,7 +126,7 @@ typeSize(const char* type)
size = (unsigned)typeSize(objctype);
if (size > 0)
{
if (value != 0)
if (value == 0)
{
[NSException raise: NSInvalidArgumentException
format: @"Cannot copy value into NULL buffer"];