Do not init username with default static string - cannot be free'd later (see ticket #137)
This commit is contained in:
parent
7328ee303f
commit
9549a19ab5
@ -338,7 +338,6 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
|
||||
settings->domain = strdup(argv[IDX_DOMAIN]);
|
||||
|
||||
/* Username */
|
||||
settings->username = "guest";
|
||||
if (argv[IDX_USERNAME][0] != '\0')
|
||||
settings->username = strdup(argv[IDX_USERNAME]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user