* fix segfault with generic machine plugin (by Jamal Selim)

the generic machine plugin doesn't have initsettings, therefore we cannot
blindly assume it exists.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4505 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
laforge 2008-07-03 16:23:41 +00:00
parent a5668a610b
commit 45973084b2
1 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,8 @@ static int gsmd_initsettings2(struct gsmd *gsmd)
if (gsmd->vendorpl && gsmd->vendorpl->initsettings){
rc |= gsmd->vendorpl->initsettings(gsmd);
rc |= gsmd->machinepl->initsettings(gsmd);
if (gsmd->machinepl && gsmd->machinepl->initsettings)
rc |= gsmd->machinepl->initsettings(gsmd);
return rc;
}
else