([NSGCString -emptyCopy]): Use [super emptyCopy], not [super allocCopy].

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@691 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-01-08 16:25:10 +00:00
parent 2e58b39376
commit 0fe0f3ff9a

View file

@ -1,5 +1,5 @@
/* Implementation for GNUStep of NSStrings with C-string backing
Copyright (C) 1993,1994 Free Software Foundation, Inc.
Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc.
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
Date: March 1995
@ -76,7 +76,7 @@
/* Empty copy must empty an allocCopy'ed version of self */
- emptyCopy
{
NSGCString *copy = [super allocCopy];
NSGCString *copy = [super emptyCopy];
OBJC_MALLOC(copy->_contents_chars, char, _count+1);
copy->_count = 0;
copy->_contents_chars[0] = '\0';