From c87047cfd42ff87ca66936c25322bc225ed9510a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 12 Jul 2000 14:25:18 +0200 Subject: [PATCH] Fixed diagnostics bug in F_EXTERNAL_LVALUE. Rev: src/interpret_functions.h:1.26 --- src/interpret_functions.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/interpret_functions.h b/src/interpret_functions.h index 2776299eec..dde1ce0097 100644 --- a/src/interpret_functions.h +++ b/src/interpret_functions.h @@ -1,5 +1,5 @@ /* - * $Id: interpret_functions.h,v 1.25 2000/07/07 01:24:14 hubbe Exp $ + * $Id: interpret_functions.h,v 1.26 2000/07/12 12:25:18 grubba Exp $ * * Opcode definitions for the interpreter. */ @@ -204,8 +204,11 @@ OPCODE2(F_EXTERNAL_LVALUE,"& external") o=Pike_fp->current_object; if(!o) - error("Current object is destructed\n"); - + error("Parent was lost during cloning.\n"); + + if(!(o->prog)) + error("Attempting to access variable in destructed object\n"); + while(1) { if(inherit->parent_offset) -- GitLab