diff --git a/qemu/util/error.c b/qemu/util/error.c index 4af889f4..becaee1c 100644 --- a/qemu/util/error.c +++ b/qemu/util/error.c @@ -123,6 +123,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; return err_new; }