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:
rfm 2013-09-19 04:37:34 +00:00
parent ed8671b98f
commit c6eab15afe

View file

@ -2920,7 +2920,7 @@ unfold(const unsigned char *src, const unsigned char *end, BOOL *folded)
*/ */
if (src > beg) if (src > beg)
{ {
s = [NSStringClass allocWithZone: NSDefaultMallocZone()]; s = nil;
if (1 == flags.isHttp) if (1 == flags.isHttp)
{ {
/* Old web code tends to use latin1 (and RFCs say we /* 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 else
{ {
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
s = [s initWithBytes: beg s = [s initWithBytes: beg
length: src - beg length: src - beg
encoding: NSASCIIStringEncoding]; encoding: NSASCIIStringEncoding];