<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 04a5db226ae34747d274a55bfc9c7960077cdcf2 Mon Sep 17 00:00:00 2001
Message-Id: &lt;04a5db226ae34747d274a55bfc9c7960077cdcf2.1367947969.git.minovotn@redhat.com&gt;
In-Reply-To: &lt;707b9b97153063374d2530e72c49b1499fc21af9.1367947969.git.minovotn@redhat.com&gt;
References: &lt;707b9b97153063374d2530e72c49b1499fc21af9.1367947969.git.minovotn@redhat.com&gt;
From: Michal Novotny &lt;minovotn@redhat.com&gt;
Date: Tue, 7 May 2013 18:37:04 +0200
Subject: [PATCH 023/114] Revert "qemu-ga: Fix unchecked strdup() by
 converting to g_strdup()"

This reverts commit b43ed51d9a3119f1ef15a307a34ae1eef273a19e.

Reverting as asked by Laszlo in message &lt;51892739.2030807@redhat.com&gt;
because of the ordering issue (most likely) related to supersed
testing.

Signed-off-by: Michal Novotny &lt;minovotn@redhat.com&gt;
---
 qga/commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qga/commands.c b/qga/commands.c
index 5a8e800..bf95e91 100644
--- a/qga/commands.c
+++ b/qga/commands.c
@@ -61,7 +61,7 @@ struct GuestAgentInfo *qmp_guest_info(Error **err)
 
     while (*cmd_list) {
         cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));
-        cmd_info-&gt;name = g_strdup(*cmd_list);
+        cmd_info-&gt;name = strdup(*cmd_list);
         cmd_info-&gt;enabled = qmp_command_is_enabled(cmd_info-&gt;name);
 
         cmd_info_list = g_malloc0(sizeof(GuestAgentCommandInfoList));
-- 
1.7.11.7

</pre></body></html>