From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcvd0-0000lp-8Q for qemu-devel@nongnu.org; Fri, 18 Sep 2015 09:23:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zcvcv-0001yA-BM for qemu-devel@nongnu.org; Fri, 18 Sep 2015 09:23:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcvcv-0001xk-6a for qemu-devel@nongnu.org; Fri, 18 Sep 2015 09:22:57 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id D1D7F79 for ; Fri, 18 Sep 2015 13:22:56 +0000 (UTC) From: Markus Armbruster Date: Fri, 18 Sep 2015 15:22:49 +0200 Message-Id: <1442582574-14275-4-git-send-email-armbru@redhat.com> In-Reply-To: <1442582574-14275-1-git-send-email-armbru@redhat.com> References: <1442582574-14275-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL 3/8] error: Copy location information in error_copy() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Eric Blake Commit 1e9b65bb forgot to propagate source information to copied errors. Signed-off-by: Eric Blake Message-Id: <1441902890-23064-1-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster --- util/error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/error.c b/util/error.c index 9dd474f..b1eb8a2 100644 --- a/util/error.c +++ b/util/error.c @@ -174,6 +174,9 @@ Error *error_copy(const Error *err) err_new = g_malloc0(sizeof(*err)); err_new->msg = g_strdup(err->msg); err_new->err_class = err->err_class; + err_new->src = err->src; + err_new->line = err->line; + err_new->func = err->func; if (err->hint) { err_new->hint = g_string_new(err->hint->str); } -- 2.4.3