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 |
{ |
{ |
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 |
} |
} |
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"); |