Commit 88e2ce29 authored by Eric Blake's avatar Eric Blake Committed by Markus Armbruster
Browse files

error: Copy location information in error_copy()



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

Signed-off-by: default avatarEric Blake <eblake@redhat.com>
Message-Id: <1441902890-23064-1-git-send-email-eblake@redhat.com>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent 50b7b000
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
    }