KW issues for agps module
Check for null pointer before dereference in Agps.cpp Change-Id: Idd1e7950572c8a45e5c7d7da0f5caee35583b53c CRs-Fixed: 2100353
This commit is contained in:
parent
04eb6ff7ee
commit
d91d77633d
1 changed files with 5 additions and 3 deletions
|
@ -462,9 +462,11 @@ void AgpsStateMachine::setAPN(char* apn, unsigned int len){
|
|||
|
||||
if (NULL != apn) {
|
||||
mAPN = new char[len+1];
|
||||
memcpy(mAPN, apn, len);
|
||||
mAPN[len] = '\0';
|
||||
mAPNLen = len;
|
||||
if (NULL != mAPN) {
|
||||
memcpy(mAPN, apn, len);
|
||||
mAPN[len] = '\0';
|
||||
mAPNLen = len;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue