blob: 788011f774d60cbb05a306d026d2a24983b71e07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* See LICENSE file for copyright and license details. */
#include "internal.h"
void
liberror_start(struct liberror_state *state)
{
state->backtrace = liberror_saved_backtrace;
liberror_saved_backtrace = NULL;
state->have_error = liberror_have_error_;
liberror_have_error_ = 0;
state->errnum = errno;
errno = 0;
memcpy(&state->error, &liberror_error_, sizeof(liberror_error_));
memset(&liberror_error_, 0, sizeof(liberror_error_));
}
|