summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-25 22:11:31 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-05-25 22:11:31 (GMT)
commitf2eee7756bea52ffa370b4b0bc07cf6511a52a4b (patch)
treef219c3306438a0fc2ef5ffc8f61bb7db0147fc9c
parenta1d61c4f2f32f1dfb1f8a2dbef140050e6179da4 (diff)
downloadlibrufl-f2eee7756bea52ffa370b4b0bc07cf6511a52a4b.tar.gz
librufl-f2eee7756bea52ffa370b4b0bc07cf6511a52a4b.tar.bz2
Initialise variable to prevent potential crash.
svn path=/trunk/rufl/; revision=7546
-rw-r--r--rufl_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rufl_init.c b/rufl_init.c
index 5f4089b..292f8d1 100644
--- a/rufl_init.c
+++ b/rufl_init.c
@@ -1085,8 +1085,8 @@ rufl_code rufl_load_cache(void)
FILE *fp;
struct rufl_font_list_entry *entry;
struct rufl_character_set *charset;
- struct rufl_unicode_map *umap = 0;
- unsigned int num_umaps;
+ struct rufl_unicode_map *umap = NULL;
+ unsigned int num_umaps = 0;
fp = fopen(rufl_CACHE, "rb");
if (!fp) {