Fixes
This commit is contained in:
parent
a1c9018847
commit
89e9f13e12
4
common.c
4
common.c
@ -422,7 +422,7 @@ str_ensure_space (struct str *self, size_t n)
|
||||
}
|
||||
|
||||
static void
|
||||
str_append_data (struct str *self, const char *data, size_t n)
|
||||
str_append_data (struct str *self, const void *data, size_t n)
|
||||
{
|
||||
str_ensure_space (self, n);
|
||||
memcpy (self->str + self->len, data, n);
|
||||
@ -1866,6 +1866,7 @@ read_config_file (struct str_map *config, struct error **e)
|
||||
{
|
||||
error_set (e, "could not open `%s' for reading: %s",
|
||||
filename, strerror (errno));
|
||||
free (filename);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1902,6 +1903,7 @@ read_config_file (struct str_map *config, struct error **e)
|
||||
|
||||
str_free (&line);
|
||||
fclose (fp);
|
||||
free (filename);
|
||||
return !errors;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user