summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-04-09 16:44:21 +0100
committerRobin Watts <robin.watts@artifex.com>2012-04-09 16:44:21 +0100
commited187a8bd9340788bca2ee84b93c965f38c8821f (patch)
treebaca57f56da6f4b8166071817f30b395f1d6c703 /fitz
parent3c1654b2db5866394476de4fc0dff80e055bc376 (diff)
downloadmupdf-ed187a8bd9340788bca2ee84b93c965f38c8821f.tar.xz
Fix use of uninitialised variable.
In my previous commit, I forgot to initialise the variable before using it. Thanks to Bas Weelinck for spotting this.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/base_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_memory.c b/fitz/base_memory.c
index a30d75db..3fdaff58 100644
--- a/fitz/base_memory.c
+++ b/fitz/base_memory.c
@@ -264,7 +264,7 @@ static int find_context(fz_context *ctx)
return i;
if (fz_lock_debug_contexts[i] == NULL)
{
- int gottit;
+ int gottit = 0;
/* We've not locked on this context before, so use
* this one for this new context. We might have other
* threads trying here too though so, so claim it