mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit xalloc.hpp
This commit is contained in:
parent
0577d74c9c
commit
93b75fdfd8
1 changed files with 9 additions and 0 deletions
|
|
@ -15,6 +15,15 @@ xstrdup_impl(const char *s_,
|
|||
{
|
||||
char *p;
|
||||
|
||||
if(p == NULL)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"mergerfs: strdup failed - file: %s; line: %u\n",
|
||||
file_,
|
||||
line_);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
p = strdup(s_);
|
||||
if(p == NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue