Skip to content
Snippets Groups Projects
Commit ca15ddb6 authored by Mahesh Kumar Sharma's avatar Mahesh Kumar Sharma
Browse files

fm: Fix for KW error

grp->list checked for NULL and dereferenced later.

Change-Id: I562497b520da3437698418fdf99aba4b7576f195
parent a3bf762e
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment