pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2004-02-10
2004-02-10 22:26:45 by Martin Stjernholm <mast@lysator.liu.se>
0469bac9d7af0704c04997f8db49650673501dd3 (
11
lines) (+
7
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
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);