config: clarify memory ownership in git_config_string()
The out parameter of `git_config_string()` is a `const char **` even though we transfer ownership of memory to the caller. This is quite misleading and has led to many memory leaks all over the place. Adapt the parameter to instead be `char **`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
83024d98f7
commit
1b261c20ed
12
imap-send.c
12
imap-send.c
@ -70,16 +70,16 @@ static char *next_arg(char **);
|
||||
|
||||
struct imap_server_conf {
|
||||
const char *name;
|
||||
const char *tunnel;
|
||||
const char *host;
|
||||
char *tunnel;
|
||||
char *host;
|
||||
int port;
|
||||
const char *folder;
|
||||
const char *user;
|
||||
const char *pass;
|
||||
char *folder;
|
||||
char *user;
|
||||
char *pass;
|
||||
int use_ssl;
|
||||
int ssl_verify;
|
||||
int use_html;
|
||||
const char *auth_method;
|
||||
char *auth_method;
|
||||
};
|
||||
|
||||
static struct imap_server_conf server = {
|
||||
|
Reference in New Issue
Block a user