pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:14:   #include "array.h"   #include "object.h"   #include "main.h"   #include "builtin_functions.h"   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.58 2000/08/15 11:04:52 grubba Exp $"); + RCSID("$Id: error.c,v 1.59 2000/08/15 11:42:44 grubba Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      /*    * Backtrace handling.    */      struct pike_backtrace   {
pike.git/src/error.c:624:    /* Sentinel that will be overwritten on buffer overflow. */    buf[sizeof(buf)-1] = '\0';       VSPRINTF(buf, fmt, foo);       if(buf[sizeof(buf)-1])    fatal("Buffer overflow in error()\n");   #endif /* HAVE_VSNPRINTF */    in_error=buf;    -  if (1 || !master_program) { +  if (!master_program) {    fprintf(stderr, "ERROR: %s\n", buf);    }       ERROR_STRUCT(generic,o)->desc=make_shared_string(buf);    f_backtrace(0);       if(func)    {    push_int(0);    push_int(0);