diff options
author | Mahesh Kumar Sharma <smahesh@codeaurora.org> | 2015-08-02 11:02:19 -0700 |
---|---|---|
committer | Mahesh Kumar Sharma <smahesh@codeaurora.org> | 2015-08-02 11:08:38 -0700 |
commit | ca15ddb6452a928651d2bed3f43d84d2edb5cb7b (patch) | |
tree | 533038f2725c6f5ff59c7c28ab4b53cd8b6e434d /jni | |
parent | a3bf762e2f9d95ba3e4dc97462f95a43074f7535 (diff) | |
download | android_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.cpp | 2 |
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; |