(initWithType:): Avoid infinite loop by calling designated initializer

instead of init.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@223 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-01 21:09:00 +00:00
parent e47e98203c
commit 12438355bb

View file

@ -80,7 +80,7 @@
{
if (strcmp(contentEncoding, @encode(char)))
[self error:"invalid args to String initializer"];
[self init];
[self initWithCString:NULL range:((IndexRange){0,0})];
return self;
}