qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 3/8] error: Copy location information in error_copy()


From: Markus Armbruster
Subject: [Qemu-devel] [PULL 3/8] error: Copy location information in error_copy()
Date: Fri, 18 Sep 2015 15:22:49 +0200

From: Eric Blake <address@hidden>

Commit 1e9b65bb forgot to propagate source information to copied
errors.

Signed-off-by: Eric Blake <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Markus Armbruster <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]