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

Diff of /mailutils/mh/mh_init.c

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

revision 1.8 by gray, Mon Apr 15 11:24:08 2002 UTC revision 1.9 by gray, Tue Aug 13 13:36:07 2002 UTC
# Line 78  mh_init () Line 78  mh_init ()
78            mh_error ("low memory");            mh_error ("low memory");
79            exit (1);            exit (1);
80          }          }
81          free (p);
82      }      }
83    else if (strchr (current_folder, ':') == NULL)    else if (strchr (current_folder, ':') == NULL)
84      {      {
# Line 122  mh_read_profile () Line 123  mh_read_profile ()
123        if (!home)        if (!home)
124          abort (); /* shouldn't happen */          abort (); /* shouldn't happen */
125        asprintf (&p, "%s/%s", home, MH_USER_PROFILE);        asprintf (&p, "%s/%s", home, MH_USER_PROFILE);
126          free (home);
127      }      }
128    mh_read_context_file (p, &profile_header);    mh_read_context_file (p, &profile_header);
129  }  }
# Line 377  mh_audit_open (char *name, mailbox_t mbo Line 379  mh_audit_open (char *name, mailbox_t mbo
379    if (strchr (namep, '/') == NULL)    if (strchr (namep, '/') == NULL)
380      {      {
381        char *p = NULL;        char *p = NULL;
382        asprintf (&p, "%s/Mail/%s", mu_get_homedir (), namep);        char *home;
383    
384          asprintf (&p, "%s/Mail/%s", home = mu_get_homedir (), namep);
385          free (home);
386        if (!p)        if (!p)
387          {          {
388            mh_error ("low memory");            mh_error ("low memory");

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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