blob: 4c55c66bea99689ca97bb955c95c60f4e1f72dcf (
plain) (
tree)
|
|
/* See LICENSE file for copyright and license details. */
#include "internal.h"
void
liberror_strdup_failed(const char *s)
{
liberror_set_error_errno("", "strdup", errno);
(void) s;
}
char *
liberror_strdup(const char *s)
{
char *ret = strdup(s);
if (ret)
return ret;
liberror_save_backtrace(NULL);
liberror_strdup_failed(s);
return NULL;
}
|