27 |
mh_context_t *ctx; |
mh_context_t *ctx; |
28 |
ctx = malloc (sizeof (*ctx)); |
ctx = malloc (sizeof (*ctx)); |
29 |
if (!ctx) |
if (!ctx) |
30 |
{ |
mh_err_memory (1); |
|
mu_error (_("not enough memory")); |
|
|
abort (); |
|
|
} |
|
31 |
if (copy) |
if (copy) |
32 |
ctx->name = name; |
ctx->name = name; |
33 |
else |
else |
34 |
{ |
{ |
35 |
ctx->name = strdup (name); |
ctx->name = strdup (name); |
36 |
if (!ctx->name) |
if (!ctx->name) |
37 |
{ |
mh_err_memory (1); |
|
mu_error (_("not enough memory")); |
|
|
abort (); |
|
|
} |
|
38 |
} |
} |
39 |
ctx->header = NULL; |
ctx->header = NULL; |
40 |
return ctx; |
return ctx; |