Initialize a pointer needed when expanding the %C "display file escape

sequence".
This commit is contained in:
kristerw 2001-05-25 23:40:25 +00:00
parent e2a08caf68
commit 1571b4e91f
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.41 2001/04/25 01:46:25 lukem Exp $ */
/* $NetBSD: conf.c,v 1.42 2001/05/25 23:40:25 kristerw Exp $ */
/*-
* Copyright (c) 1997-2001 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: conf.c,v 1.41 2001/04/25 01:46:25 lukem Exp $");
__RCSID("$NetBSD: conf.c,v 1.42 2001/05/25 23:40:25 kristerw Exp $");
#endif /* not lint */
#include <sys/types.h>
@ -628,7 +628,8 @@ int
display_file(const char *file, int code)
{
FILE *f;
char *buf, *p, *cwd;
char *buf, *p;
char cwd[MAXPATHLEN];
size_t len;
off_t lastnum;
time_t now;