]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Tools gdp plugin updates.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 4 May 2021 02:39:40 +0000 (19:39 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 4 May 2021 02:39:40 +0000 (19:39 -0700)
open-vm-tools/services/plugins/gdp/gdpPlugin.c

index 6ef6674648707daf4bd6116d6800a1c5799cadd4..2bba2937e754a10e093fa471c1d81bdfa1983b09 100644 (file)
@@ -1910,6 +1910,7 @@ GdpJsonIsPublishResult(const char *json,        // IN
       } else if (GdpJsonIsTokenOfKey(json, &tokens[index],
                                      GDP_RESULT_DIAGNOSIS)) {
          index++;
+         ASSERT(diagnosis == NULL);
          tokenLen = tokens[index].end - tokens[index].start;
          diagnosis = g_strndup(json + tokens[index].start, tokenLen);
       } else if (GdpJsonIsTokenOfKey(json, &tokens[index],