mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(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:
parent
e47e98203c
commit
12438355bb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue