[PATCH] search.c: fix gcc warning

Alexey Tourbin <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
search.c: In function 'point_intersect':
search.c:828: warning: value computed is not used
search.c:828: warning: value computed is not used
---
 src/viewer/text/search.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/viewer/text/search.c b/src/viewer/text/search.c
index 5371688..1f3143e 100644
--- a/src/viewer/text/search.c
+++ b/src/viewer/text/search.c
@@ -825,7 +825,10 @@ point_intersect(struct point *p1, int l1, struct point *p2, int l2)
 	assert(p2);
 	if_assert_failed return 0;
 
-	if (first_time) memset(hash, 0, HASH_SIZE), first_time = 0;
+	if (first_time) {
+		memset(hash, 0, HASH_SIZE);
+		first_time = 0;
+	}
 
 	for (i = 0; i < l1; i++) hash[HASH(p1[i])] = 1;
 
-- 
1.5.0.1.GIT
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.