From c70ed3d5adba5dce798decafd54459bd17674a20 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 20 Feb 2011 23:40:42 +0000 Subject: Ensure returned length is initialised svn path=/trunk/netsurf/; revision=11744 --- desktop/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/options.c b/desktop/options.c index c0df47d1c..091a3b9e5 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -480,7 +480,7 @@ void options_write(const char *path) static size_t options_output_value_html(struct option_entry_s *option, size_t size, size_t pos, char *string) { - size_t slen; /* length added to string */ + size_t slen = 0; /* length added to string */ colour rgbcolour; /* RRGGBB */ switch (option->type) { @@ -532,7 +532,7 @@ static size_t options_output_value_html(struct option_entry_s *option, static size_t options_output_value_text(struct option_entry_s *option, size_t size, size_t pos, char *string) { - size_t slen; /* length added to string */ + size_t slen = 0; /* length added to string */ colour rgbcolour; /* RRGGBB */ switch (option->type) { -- cgit v1.2.3