Branch: Tag:

2007-04-17

2007-04-17 12:20:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in add_global_program when called with NULL.

Rev: src/constants.c:1.57

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: constants.c,v 1.56 2006/01/14 18:18:45 nilsson Exp $ + || $Id: constants.c,v 1.57 2007/04/17 12:20:46 grubba Exp $   */      #include "global.h"
68:    s.type=T_PROGRAM;    s.subtype=0;    s.u.program=p; -  low_add_constant(name, &s); +  low_add_constant(name, p?&s:NULL);   }      #undef INIT_BLOCK