summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorMahesh Kumar Sharma <smahesh@codeaurora.org>2015-08-02 11:02:19 -0700
committerMahesh Kumar Sharma <smahesh@codeaurora.org>2015-08-02 11:08:38 -0700
commitca15ddb6452a928651d2bed3f43d84d2edb5cb7b (patch)
tree533038f2725c6f5ff59c7c28ab4b53cd8b6e434d /jni
parenta3bf762e2f9d95ba3e4dc97462f95a43074f7535 (diff)
downloadandroid_vendor_qcom_opensource_fm-commonsys-ca15ddb6452a928651d2bed3f43d84d2edb5cb7b.tar.gz
android_vendor_qcom_opensource_fm-commonsys-ca15ddb6452a928651d2bed3f43d84d2edb5cb7b.tar.bz2
android_vendor_qcom_opensource_fm-commonsys-ca15ddb6452a928651d2bed3f43d84d2edb5cb7b.zip
fm: Fix for KW error
grp->list checked for NULL and dereferenced later. Change-Id: I562497b520da3437698418fdf99aba4b7576f195
Diffstat (limited to 'jni')
-rw-r--r--jni/ConfFileParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/ConfFileParser.cpp b/jni/ConfFileParser.cpp
index 103c240..ae8b15e 100644
--- a/jni/ConfFileParser.cpp
+++ b/jni/ConfFileParser.cpp
@@ -753,7 +753,7 @@ static char key_exist
while((grp != NULL)) {
if(!strcmp(cur_grp, grp->grp_name)) {
key_index = (key_hash_code % grp->keys_hash_size);
- if(!grp->list)
+ if(grp->list)
list = grp->list[key_index];
while((list != NULL) && strcmp(key, list->key)) {
list = list->next;