From c4b9988bcebef84fa11a05eefa7881ee584b0ac1 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 23 Apr 2001 13:00:17 +0000 Subject: [PATCH] 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 --- Source/GSValue.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GSValue.m b/Source/GSValue.m index 48b34cc44..2b27adb05 100644 --- a/Source/GSValue.m +++ b/Source/GSValue.m @@ -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"];