Permalink
Browse files

map bug fix

  • Loading branch information...
1 parent cb721ac commit f9876c9cebb69352d55efa13d2ea78e515a15ae2 @cloudwu committed Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/map.c
View
2 src/core/map.c
@@ -126,7 +126,7 @@ map_search(struct map *m,struct key *key)
temp=temp->next;
}
for (i=m->freenode;i<m->size;i++) {
- if (m->buffer[i].value==0) {
+ if (m->buffer[i].key==0) {
m->buffer[i].key=key;
temp->next=m->buffer+i;
m->freenode=i+1;

0 comments on commit f9876c9

Please sign in to comment.