projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Back out previous, completely broken, change (due to a foulup I was
[mmh]
/
sbr
/
context_foil.c
diff --git
a/sbr/context_foil.c
b/sbr/context_foil.c
index
d6c90c4
..
7eccd79
100644
(file)
--- a/
sbr/context_foil.c
+++ b/
sbr/context_foil.c
@@
-10,6
+10,7
@@
*/
#include <h/mh.h>
*/
#include <h/mh.h>
+#include <h/utils.h>
/*
* Foil search of users .mh_profile
/*
* Foil search of users .mh_profile
@@
-45,10
+46,7
@@
context_foil (char *path)
* If path is given, create a minimal profile/context list
*/
if (path) {
* If path is given, create a minimal profile/context list
*/
if (path) {
- if (!(m_defs = (struct node *) malloc (sizeof(*np)))) {
- advise (NULL, "unable to allocate profile storage");
- return -1;
- }
+ m_defs = (struct node *) mh_xmalloc (sizeof(*np));
np = m_defs;
if (!(np->n_name = strdup ("Path"))) {
np = m_defs;
if (!(np->n_name = strdup ("Path"))) {