Commit 4825f0a9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(main): Initialize current_time.

parent c6c7f24a
/*
* $Id: ramkomd.c,v 0.83 1999/05/15 22:55:26 ceder Exp $
* $Id: ramkomd.c,v 0.84 1999/05/16 21:46:31 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -44,7 +44,7 @@
#endif
static const char *
rcsid = "$Id: ramkomd.c,v 0.83 1999/05/15 22:55:26 ceder Exp $";
rcsid = "$Id: ramkomd.c,v 0.84 1999/05/16 21:46:31 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -107,6 +107,7 @@ USE(rcsid);
#include "unused.h"
#include "sigflags.h"
#include "local-to-global.h"
#include "server-time.h"
#ifdef TRACED_ALLOCATIONS
# include "trace-alloc.h"
#endif
......@@ -117,6 +118,7 @@ USE(rcsid);
Kom_err kom_errno = KOM_NO_ERROR;
unsigned long err_stat = 0;
time_t current_time = 0;
#ifndef NDEBUG
......@@ -439,6 +441,7 @@ main (int argc,
#ifdef HAVE_STRUCT_SIGACTION
struct sigaction act;
#endif
current_time = time(NULL);
#ifdef TRACED_ALLOCATIONS
/* We must do this before we allocate any memory... */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment