Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/ftp pullup 1.57->1.58 (lukem)
details: https://anonhg.NetBSD.org/src/rev/64e59a0eceeb
branches: netbsd-1-4
changeset: 469166:64e59a0eceeb
user: perry <perry%NetBSD.org@localhost>
date: Fri Jul 02 17:20:58 1999 +0000
description:
pullup 1.57->1.58 (lukem)
diffstat:
usr.bin/ftp/fetch.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 6b80fd3e8173 -r 64e59a0eceeb usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c Fri Jul 02 17:19:14 1999 +0000
+++ b/usr.bin/ftp/fetch.c Fri Jul 02 17:20:58 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.52.2.2 1999/06/25 01:15:14 cgd Exp $ */
+/* $NetBSD: fetch.c,v 1.52.2.3 1999/07/02 17:20:58 perry Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.52.2.2 1999/06/25 01:15:14 cgd Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.52.2.3 1999/07/02 17:20:58 perry Exp $");
#endif /* not lint */
/*
@@ -1090,8 +1090,7 @@
*/
/* check for trailing ';type=[aid]' */
- cp = strrchr(path, ';');
- if (cp != NULL) {
+ if (path != NULL && (cp = strrchr(path, ';')) != NULL) {
if (strcasecmp(cp, ";type=a") == 0)
type = TYPE_A;
else if (strcasecmp(cp, ";type=i") == 0)
Home |
Main Index |
Thread Index |
Old Index