diff options
author | Steven Mestdagh <steven@cvs.openbsd.org> | 2006-06-23 20:35:26 +0000 |
---|---|---|
committer | Steven Mestdagh <steven@cvs.openbsd.org> | 2006-06-23 20:35:26 +0000 |
commit | 007c2b915a9b978140e1c8582c55eeb67cd465ef (patch) | |
tree | 5e4574e089ad9eb57a0abad72a0d184c217c0738 /usr.bin/ftp/complete.c | |
parent | a3bc1e3f60bdf154d8a8841a3716d82df8360025 (diff) |
free and sl_free already check against NULL, remove a few unneeded ifs.
ok otto
Diffstat (limited to 'usr.bin/ftp/complete.c')
-rw-r--r-- | usr.bin/ftp/complete.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ftp/complete.c b/usr.bin/ftp/complete.c index e8232d92bf5..183cdff33d6 100644 --- a/usr.bin/ftp/complete.c +++ b/usr.bin/ftp/complete.c @@ -1,4 +1,4 @@ -/* $OpenBSD: complete.c,v 1.18 2006/04/25 05:45:20 tedu Exp $ */ +/* $OpenBSD: complete.c,v 1.19 2006/06/23 20:35:25 steven Exp $ */ /* $NetBSD: complete.c,v 1.10 1997/08/18 10:20:18 lukem Exp $ */ /*- @@ -39,7 +39,7 @@ #ifndef SMALL #ifndef lint -static const char rcsid[] = "$OpenBSD: complete.c,v 1.18 2006/04/25 05:45:20 tedu Exp $"; +static const char rcsid[] = "$OpenBSD: complete.c,v 1.19 2006/06/23 20:35:25 steven Exp $"; #endif /* not lint */ /* @@ -236,8 +236,7 @@ complete_remote(char *word, int list) if (dirchange || strcmp(dir, lastdir) != 0) { /* dir not cached */ char *emesg; - if (dirlist != NULL) - sl_free(dirlist, 1); + sl_free(dirlist, 1); dirlist = sl_init(); mflag = 1; |