Branch: Tag:

2008-06-30

2008-06-30 10:01:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed ref-counting bug in String.secure().

Rev: src/builtin.cmod:1.221

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: builtin.cmod,v 1.220 2008/06/29 23:14:18 grubba Exp $ + || $Id: builtin.cmod,v 1.221 2008/06/30 10:01:54 grubba Exp $   */      #include "global.h"
656:    rawtype tFunc(tSetvar(0, tStr), tVar(0));   {    str->flags |= STRING_CLEAR_ON_EXIT; -  RETURN str; +  REF_RETURN str;   }      /*! @decl int count(string haystack, string needle)