From 24c28f5ef655fa800636c45bbc1c1108b517f36c Mon Sep 17 00:00:00 2001 From: Nils <> Date: Thu, 2 Jul 2020 22:26:48 +0200 Subject: [PATCH] initialize missing Client member variables --- src/nsmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nsmd.cpp b/src/nsmd.cpp index 50dd19f..5a99167 100644 --- a/src/nsmd.cpp +++ b/src/nsmd.cpp @@ -260,6 +260,8 @@ public: executable_path = 0; pre_existing = false; launch_error = 0; + dirty = NULL; + status = ""; } ~Client ( ) @@ -544,7 +546,7 @@ get_client_by_address ( lo_address addr ) char * generate_client_id ( void ) { - /* Before v1.4 this returned "n" + 4 random upper-case letters, which could lead to collisions. + /* Before v1.4 this returned "n" + 4 random upper-case letters, which could lead to collisions. We changed behaviour to still generate 4 letters, but check for collision with existing IDs. Loaded client IDs are not checked, just copied from session.nsm because loading happens before