From 9b78beec63b441d509a7fce9feb477c07641ae14 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 5 Oct 2002 17:58:23 +0000 Subject: [PATCH] Minor typo fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14655 72102866-910b-0410-8b05-ffd578937521 --- Source/NSData.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/NSData.m b/Source/NSData.m index 4a4ee74f0..27c58fdb7 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -2746,7 +2746,8 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos) maxLength: sizeof(thePath)-1] == NO) { NSWarnMLog(@"Open (%s) attempt failed - bad path", thePath); - return NO; + RELEASE(self); + return nil; } fd = open(thePath, O_RDONLY); if (fd < 0)