Branch: Tag:

2008-02-26

2008-02-26 21:51:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed NULL-dereference in handling of the splice-operator.

Rev: src/las.c:1.405

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: las.c,v 1.404 2008/01/28 18:41:50 grubba Exp $ + || $Id: las.c,v 1.405 2008/02/26 21:51:37 grubba Exp $   */      #include "global.h"
3472:    array_type, CAR(n)->type, 0);    }    free_type(array_type); -  } +     /* FIXME: The type field of the splice operator is not yet utilized.    *    * It probably ought to be something similar to MANY(..., VOID).    */    n->type = index_type(CAR(n)->type, int_type_string, n); -  +  } else { +  copy_pike_type(n->type, mixed_type_string); +  }    break;       case F_AUTO_MAP_MARKER: