summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorerh <erh@NetBSD.org>2003-02-24 19:26:49 +0000
committererh <erh@NetBSD.org>2003-02-24 19:26:49 +0000
commitdadb4ce1cf7b128c5723bcfee41228b8bb667e31 (patch)
tree03547eea967d39a72a4d56ebc9d557895f4e869f /libexec
parent6697099535d18decc9782be1a5f4f9a0988018be (diff)
Fix uninitialized variable "notglob" in send_file_list() that was causing
transfers to fail due to an abort in free().
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 54892ae9863..67d0eb7f889 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpd.c,v 1.152 2003/02/23 13:04:37 lukem Exp $ */
+/* $NetBSD: ftpd.c,v 1.153 2003/02/24 19:26:49 erh Exp $ */
/*
* Copyright (c) 1997-2001 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)ftpd.c 8.5 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: ftpd.c,v 1.152 2003/02/23 13:04:37 lukem Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.153 2003/02/24 19:26:49 erh Exp $");
#endif
#endif /* not lint */
@@ -2909,7 +2909,8 @@ send_file_list(const char *whichf)
DIR *dirp = NULL;
struct dirent *dir;
FILE *dout = NULL;
- char **dirlist, *dirname, *notglob, *p;
+ char **dirlist, *dirname, *p;
+ char *notglob = NULL;
int simple = 0;
int freeglob = 0;
glob_t gl;