From cb12cb240714f2599addd4ec61ef336ab87482cd Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 6 Nov 2007 11:34:03 +0000 Subject: modprobe: fix a bug where we were entering endless loop syslogd: strip trailing '\n' too, not only NULs --- modutils/modprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modutils/modprobe.c') diff --git a/modutils/modprobe.c b/modutils/modprobe.c index f7d193a05..dafbb4ecd 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -791,7 +791,7 @@ static void check_dep(char *mod, struct mod_list_t **head, struct mod_list_t **t if (*tail) (*tail)->m_next = find; find->m_prev = *tail; - /*find->m_next = NULL; - xzalloc did it */ + find->m_next = NULL; /* possibly NOT done by xzalloc! */ if (!*head) *head = find; -- cgit v1.2.3