/[mailutils]/mailutils/mh/mh_ctx.c
ViewVC logotype

Diff of /mailutils/mh/mh_ctx.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by gray, Wed Jan 15 17:38:05 2003 UTC revision 1.5 by gray, Sat Jan 18 21:59:29 2003 UTC
# Line 27  mh_context_create (char *name, int copy) Line 27  mh_context_create (char *name, int copy)
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;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26