summaryrefslogtreecommitdiffstats
path: root/fortune/fortune/fortune.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-21 20:25:55 +0000
committerchristos <christos@NetBSD.org>2006-03-21 20:25:55 +0000
commit0cef9d971643acfb2c83647f5f5903c96d774d97 (patch)
tree52ac0702011fafb70edab0681ad0e712ddc79ace /fortune/fortune/fortune.c
parentc75621391dae5a9b1412c1964ee8f6debf2c1035 (diff)
downloadbsdgames-darwin-0cef9d971643acfb2c83647f5f5903c96d774d97.tar.gz
bsdgames-darwin-0cef9d971643acfb2c83647f5f5903c96d774d97.tar.zst
bsdgames-darwin-0cef9d971643acfb2c83647f5f5903c96d774d97.zip
Coverity CID 2735: Remove dead code.
Diffstat (limited to 'fortune/fortune/fortune.c')
-rw-r--r--fortune/fortune/fortune.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index 2addaab8..c9fb8a3b 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.47 2006/03/18 23:54:17 christos Exp $ */
+/* $NetBSD: fortune.c,v 1.48 2006/03/21 20:25:55 christos Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.47 2006/03/18 23:54:17 christos Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.48 2006/03/21 20:25:55 christos Exp $");
#endif
#endif /* not lint */
@@ -568,8 +568,6 @@ over:
if (dir == NULL && tfile[0] != '/') {
int n = add_file(percent, tfile, FORTDIR, head, tail,
parent);
- if (tpath)
- free(tpath);
free(tfile);
return n;
}