Do not init username with default static string - cannot be free'd later (see ticket #137)

This commit is contained in:
Michael Jumper 2012-05-17 22:51:57 -07:00
parent 7328ee303f
commit 9549a19ab5

View File

@ -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]);