From d85cc387cfa6c49aa5d89795da892cb390c44f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 13 Jun 2008 09:57:52 +0200 Subject: [PATCH] Fixed reference count bug in implementation of __DIR__. Rev: src/cpp.c:1.173 --- src/cpp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpp.c b/src/cpp.c index 2f4dc34e01..9be5048964 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -2,7 +2,7 @@ || 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: cpp.c,v 1.172 2008/06/12 17:09:11 nilsson Exp $ +|| $Id: cpp.c,v 1.173 2008/06/13 07:57:52 grubba Exp $ */ #include "global.h" @@ -1506,8 +1506,8 @@ static void insert_current_dir_as_string(struct cpp *this, struct define_argument *args, struct string_builder *tmp) { - push_string(this->current_file); - push_text(".."); + ref_push_string(this->current_file); + push_constant_text(".."); #ifdef __NT__ f_combine_path_nt(2); #else -- GitLab