=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/main.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/ftp/main.c 1995/10/18 08:45:17 1.1 --- src/usr.bin/ftp/main.c 1996/05/10 12:59:51 1.2 *************** *** 41,47 **** #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else ! static char rcsid[] = "$NetBSD: main.c,v 1.10 1995/09/15 00:32:33 pk Exp $"; #endif #endif /* not lint */ --- 41,47 ---- #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else ! static char rcsid[] = "$NetBSD: main.c,v 1.11 1996/05/07 00:16:55 pk Exp $"; #endif #endif /* not lint */ *************** *** 287,292 **** --- 287,295 ---- char *p, *q; struct cmd *c, *found; int nmatches, longest; + + if (name == NULL) + return (0); longest = 0; nmatches = 0;