KW Warning Fix

Check file pointer before closing.

Change-Id: Id9526f6eacf57e282dc0af35d72f571f950b0b0e
CRs-Fixed: 2193268
This commit is contained in:
Saurabh Srivastava 2018-02-21 16:04:28 +05:30
parent 453ea46352
commit 980d403c81

View file

@ -1119,7 +1119,9 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
}
err:
fclose(conf_fp);
if (conf_fp) {
fclose(conf_fp);
}
if (ret != 0) {
LOC_LOGE("%s:%d]: ret: %d", __func__, __LINE__, ret);
if (child_proc) {