mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
1c43499ee6
commit
2a8a1084f3
1 changed files with 1 additions and 1 deletions
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue