diff options
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r-- | modutils/modprobe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index c6a83553f..2b90eb019 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c | |||
@@ -306,10 +306,10 @@ static struct dep_t *build_dep ( void ) | |||
306 | // fprintf ( stderr, "ALIAS: '%s' -> '%s'\n", alias, mod ); | 306 | // fprintf ( stderr, "ALIAS: '%s' -> '%s'\n", alias, mod ); |
307 | 307 | ||
308 | if ( !current ) { | 308 | if ( !current ) { |
309 | first = current = (struct dep_t *) xmalloc ( sizeof ( struct dep_t )); | 309 | first = current = (struct dep_t *) xcalloc ( 1, sizeof ( struct dep_t )); |
310 | } | 310 | } |
311 | else { | 311 | else { |
312 | current-> m_next = (struct dep_t *) xmalloc ( sizeof ( struct dep_t )); | 312 | current-> m_next = (struct dep_t *) xcalloc ( 1, sizeof ( struct dep_t )); |
313 | current = current-> m_next; | 313 | current = current-> m_next; |
314 | } | 314 | } |
315 | current-> m_module = bb_xstrdup ( alias ); | 315 | current-> m_module = bb_xstrdup ( alias ); |