Branch: Tag:

2004-02-10

2004-02-10 22:26:45 by Martin Stjernholm <mast@lysator.liu.se>

Fixed a warning in fill_in_file_and_line.

Rev: src/builtin.cmod:1.146

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.145 2003/12/08 11:13:12 nilsson Exp $ + || $Id: builtin.cmod,v 1.146 2004/02/10 22:26:45 mast Exp $   */      #include "global.h"
1240:       static void fill_in_file_and_line()    { -  struct pike_string *file; +  struct pike_string *file = NULL;    assert (THIS->lineno == -1);       if (THIS->pc && THIS->prog) {
1253:    else if (THIS->prog)    file = low_get_program_line (THIS->prog, &THIS->lineno);    +  if (file) {    if (!THIS->filename) THIS->filename = file;    else free_string (file); -  +  }       if (THIS->prog) {    free_program(THIS->prog);