modprobe: fix a bug where we were entering endless loop
syslogd: strip trailing '\n' too, not only NULs
This commit is contained in:
1 parent
5281630229
commit
cb12cb2407
2 files changed
+12
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user