Branch: Tag:

2008-06-29

2008-06-29 18:01:58 by Martin Nilsson <mani@lysator.liu.se>

Let's return the string from secure.

Rev: src/builtin.cmod:1.219

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.218 2008/06/29 17:57:01 nilsson Exp $ + || $Id: builtin.cmod,v 1.219 2008/06/29 18:01:39 nilsson Exp $   */      #include "global.h"
651:    *! Marks the string as secure, which will clear the memory area    *! before freeing the string.    */ - PIKEFUN void secure(string str) + PIKEFUN string secure(string str)    optflags OPT_SIDE_EFFECT;   {    str->flags |= STRING_CLEAR_ON_EXIT; -  +  RETURN str;   }      /*! @decl int count(string haystack, string needle)