I screwed up the last commit: if dt is null when ENABLE_MULTIPLE_OPTIONS is

off, we'd dereference the null.  Oops.
This commit is contained in:
Rob Landley 2005-12-16 06:18:06 +00:00
parent a930bd3332
commit 199501f2a0

View File

@ -497,7 +497,8 @@ static struct dep_t *build_dep ( void )
if ( strcmp ( dt-> m_name, mod ) == 0 )
break;
}
if ( ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS && dt ) {
if ( dt ) {
if ( ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS ) {
char* new_opt = NULL;
while( ( opt = parse_command_string( opt, &new_opt ) ) ) {
dt-> m_options = append_option( dt-> m_options, new_opt );
@ -509,6 +510,7 @@ static struct dep_t *build_dep ( void )
}
}
}
}
close ( fd );
return first;