Skip to content

Commit

Permalink
map: fix return value of map_delete
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Jan 13, 2016
1 parent 1ac8e80 commit 0b886f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void *map_delete(Map *map, const char *key)
/* Did we find it? */
if (strcmp(key, n->u.s)) {
errno = ENOENT;
return false;
return NULL;
}

free((char*)n->u.s);
Expand Down

0 comments on commit 0b886f8

Please sign in to comment.