mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
ed8671b98f
commit
c6eab15afe
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)
|
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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue