Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* nscd/hstcache.c (cache_addhst): Minimal optimization.
  • Loading branch information
Ulrich Drepper committed Aug 22, 2007
1 parent 2a01ce5 commit a30d41c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -1,5 +1,7 @@
2007-08-21 Ulrich Drepper <drepper@redhat.com>

* nscd/hstcache.c (cache_addhst): Minimal optimization.

[BZ #4925]
* debug/pcprofiledump.c: Turn on internationalization by calling
setlocale. Patch mostly by Benno Schulenberg.
Expand Down
2 changes: 1 addition & 1 deletion nscd/hstcache.c
Expand Up @@ -221,7 +221,7 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req,
the current cache handling cannot handle and it is more than
questionable whether it is worthwhile complicating the cache
handling just for handling such a special case. */
if (he == NULL && hst->h_addr_list[1] == NULL)
if (he == NULL && h_addr_list_cnt == 1)
{
dataset = (struct dataset *) mempool_alloc (db,
total + req->key_len);
Expand Down

0 comments on commit a30d41c

Please sign in to comment.