From 909606627ffc77516b134ba005465a354b6a3c53 Mon Sep 17 00:00:00 2001 From: NamoDev Date: Thu, 14 Mar 2019 09:23:31 -0400 Subject: [PATCH] [CLIENT] Fixed invalid value initialization --- client/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index a7dcd836..b91e0d07 100644 --- a/client/main.c +++ b/client/main.c @@ -1602,8 +1602,9 @@ static bool load_config(const char * configFile) int main(int argc, char * argv[]) { - params.shmFile = strdup(params.shmFile ); + params.shmFile = strdup(params.shmFile); params.spiceHost = strdup(params.spiceHost); + params.windowTitle = strdup(params.windowTitle); { // load any global then local config options first @@ -1885,6 +1886,7 @@ int main(int argc, char * argv[]) continue; case 't': + free(params.windowTitle); params.windowTitle = strdup(optarg); continue;