Merge "Prevent print of uninitialized string"

This commit is contained in:
Linux Build Service Account 2017-04-29 14:48:03 -07:00 committed by Gerrit - the friendly Code Review server
commit f4f9b5c5a6
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ GnssInterface* Gnss::getGnssInterface() {
if (nullptr == mGnssInterface && !getGnssInterfaceFailed) {
LOC_LOGD("%s]: loading libgnss.so::getGnssInterface ...", __func__);
getLocationInterface* getter = NULL;
const char *error;
const char *error = NULL;
dlerror();
void *handle = dlopen("libgnss.so", RTLD_NOW);
if (NULL == handle || (error = dlerror()) != NULL) {

View file

@ -82,7 +82,7 @@ static void* loadLocationInterface(const char* library, const char* name) {
return NULL;
}
getLocationInterface* getter = NULL;
const char *error;
const char *error = NULL;
dlerror();
void *handle = dlopen(library, RTLD_NOW);
if (NULL == handle || (error = dlerror()) != NULL) {