mirror of https://github.com/mirror/busybox.git
I screwed up the last commit: if dt is null when ENABLE_MULTIPLE_OPTIONS is
off, we'd dereference the null. Oops.1_1_stable
parent
a930bd3332
commit
199501f2a0
|
@ -497,13 +497,15 @@ static struct dep_t *build_dep ( void )
|
||||||
if ( strcmp ( dt-> m_name, mod ) == 0 )
|
if ( strcmp ( dt-> m_name, mod ) == 0 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS && dt ) {
|
if ( dt ) {
|
||||||
char* new_opt = NULL;
|
if ( ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS ) {
|
||||||
while( ( opt = parse_command_string( opt, &new_opt ) ) ) {
|
char* new_opt = NULL;
|
||||||
dt-> m_options = append_option( dt-> m_options, new_opt );
|
while( ( opt = parse_command_string( opt, &new_opt ) ) ) {
|
||||||
|
dt-> m_options = append_option( dt-> m_options, new_opt );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
dt-> m_options = append_option( dt-> m_options, opt );
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
dt-> m_options = append_option( dt-> m_options, opt );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue