From 2c136a1b71a29d1b84d630c8cbc127e8f1f15314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Mon, 19 Jan 1998 18:31:41 -0800 Subject: [PATCH] fixed a fatal bug in #if constant() Rev: src/cpp.c:1.11 --- src/cpp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cpp.c b/src/cpp.c index 407e184cb0..27ff3d07b7 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -1870,8 +1870,7 @@ static void check_constant(struct cpp *this, res=1; low_my_binary_strcat(" 1 ", 3,tmp); }else if(get_master()) { - this->current_file->refs++; - push_string(this->current_file); + ref_push_string(this->current_file); SAFE_APPLY_MASTER("resolv",2); res=(throw_value.type!=T_STRING) && @@ -1924,7 +1923,7 @@ static int do_safe_index_call(struct pike_string *s) if (SETJMP(recovery)) { res = 0; } else { - push_string(s); + ref_push_string(s); f_index(2); res=!(IS_ZERO(sp-1) && sp[-1].subtype == NUMBER_UNDEFINED); -- GitLab