Fix not generating a valid system uuid

Mon, 06 Aug 2018 17:04:57 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 06 Aug 2018 17:04:57 +0200
changeset 565
3593b18486d7
parent 564
3fc61dd28656
child 566
776a605befa5

Fix not generating a valid system uuid

thermferm/rdconfig.c file | annotate | diff | comparison | revisions
--- a/thermferm/rdconfig.c	Sat Aug 04 16:29:12 2018 +0200
+++ b/thermferm/rdconfig.c	Mon Aug 06 17:04:57 2018 +0200
@@ -2336,6 +2336,10 @@
     /*
      * If the system uuid is not set, do it now.
      */
+    if (Config.uuid && ! strcmp((char *)"(null)", Config.uuid)) {
+	free(Config.uuid);
+	Config.uuid = NULL;
+    }
     if (Config.uuid == NULL) {
 	uuid_t		uu;
 

mercurial