pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2009-05-29
2009-05-29 10:34:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7bbc2d6411ad393240a0675e2f8368fcbfc46a71 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
7.4
Reference count bugfix in modify_shared_string().
Rev: src/stralloc.c:1.162
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: stralloc.c,v 1.
161
2008
/
11/
05
15
:
04
:
05
grubba Exp $
+
|| $Id: stralloc.c,v 1.
162
2009
/
05
/
29
10
:
34
:
08
grubba Exp $
*/ #include "global.h"
24:
#include <ctype.h> #include <math.h>
-
RCSID("$Id: stralloc.c,v 1.
161
2008
/
11/
05
15
:
04
:
05
grubba Exp $");
+
RCSID("$Id: stralloc.c,v 1.
162
2009
/
05
/
29
10
:
34
:
08
grubba Exp $");
/* #define STRALLOC_USE_PRIMES */
1571:
add_ref(a = old); } else { link_pike_string(a, a->hval);
+
add_ref(a);
} return a; }else{