summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-11-05 23:33:15 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-11-05 23:33:15 +0100
commit789c444be410ac46ec7cd892882b7dd231f61221 (patch)
treeb8fdc1fe19c7de93b24939c19fbeb98b10711cb4 /src
parent07ad459ca83bddde8dcfad5535b3260386d222ff (diff)
Fix: Variable 'h' is reassigned a value before the old one has been use
Diffstat (limited to 'src')
-rw-r--r--src/fingerprint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fingerprint.c b/src/fingerprint.c
index 272c1b1..e17d83e 100644
--- a/src/fingerprint.c
+++ b/src/fingerprint.c
@@ -600,11 +600,10 @@ extern int fp_Create(void *handle, const char *buffer, uint4 bufsize,
uint4 maxngrams)
{
sint4 i = 0;
- fp_t *h = NULL;
table_t *t = NULL;
char *tmp = NULL;
- h = (fp_t *) handle;
+ fp_t *h = (fp_t *) handle;
if (bufsize < h->mindocsize)
return 0;