mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix uninitialised variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37113 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3809634e47
commit
7607b307e2
1 changed files with 2 additions and 1 deletions
|
@ -2920,7 +2920,7 @@ unfold(const unsigned char *src, const unsigned char *end, BOOL *folded)
|
|||
*/
|
||||
if (src > beg)
|
||||
{
|
||||
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
||||
s = nil;
|
||||
if (1 == flags.isHttp)
|
||||
{
|
||||
/* Old web code tends to use latin1 (and RFCs say we
|
||||
|
@ -2952,6 +2952,7 @@ unfold(const unsigned char *src, const unsigned char *end, BOOL *folded)
|
|||
}
|
||||
else
|
||||
{
|
||||
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
||||
s = [s initWithBytes: beg
|
||||
length: src - beg
|
||||
encoding: NSASCIIStringEncoding];
|
||||
|
|
Loading…
Reference in a new issue