[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Man-db-devel] [PATCH 2/2] src/man.c: Remove unused variable
From: |
Mihail Konev |
Subject: |
[Man-db-devel] [PATCH 2/2] src/man.c: Remove unused variable |
Date: |
Tue, 3 Jan 2017 01:39:07 +0500 |
---
src/man.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/man.c b/src/man.c
index 07dfd2a59dc6..6e79a573df25 100644
--- a/src/man.c
+++ b/src/man.c
@@ -3863,7 +3863,7 @@ static void locate_page_in_manpath (const char
*page_section,
static int man (const char *name, int *found)
{
char *page_name, *page_section;
- struct candidate *candidates = NULL, *cand, *candnext;
+ struct candidate *candidates = NULL, *cand;
*found = 0;
fflush (stdout);
@@ -3899,10 +3899,8 @@ static int man (const char *name, int *found)
if (*found)
*found = display_pages (candidates);
- for (cand = candidates; cand; cand = candnext) {
- candnext = cand->next;
+ for (cand = candidates; cand; cand = cand->next)
free_candidate (cand);
- }
return *found ? OK : NOT_FOUND;
}
--
2.9.2