diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-04-09 16:44:21 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-04-09 16:44:21 +0100 |
commit | ed187a8bd9340788bca2ee84b93c965f38c8821f (patch) | |
tree | baca57f56da6f4b8166071817f30b395f1d6c703 /fitz/base_memory.c | |
parent | 3c1654b2db5866394476de4fc0dff80e055bc376 (diff) | |
download | mupdf-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/base_memory.c')
-rw-r--r-- | fitz/base_memory.c | 2 |
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 |