mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 11:24:57 +03:00
Ensure returned length is initialised
svn path=/trunk/netsurf/; revision=11744
This commit is contained in:
parent
c16b6ba8fa
commit
c70ed3d5ad
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user