[ltrace-commits] 02/02: Fix for the erase-find issue

Petr Machata pmachata-guest at moszumanska.debian.org
Wed Jan 7 00:50:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit 03983b755083537ccb902c1ad4d9cf41e4790914
Author: Petr Machata <pmachata at redhat.com>
Date:   Wed Jan 7 01:44:50 2015 +0100

    Fix for the erase-find issue
---
 dict.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dict.c b/dict.c
index 0bfd552..3578c9a 100644
--- a/dict.c
+++ b/dict.c
@@ -1,6 +1,6 @@
 /*
  * This file is part of ltrace.
- * Copyright (C) 2012, 2013, 2014 Petr Machata, Red Hat Inc.
+ * Copyright (C) 2012, 2013, 2014, 2015 Petr Machata, Red Hat Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -232,7 +232,7 @@ find_slot(struct dict *dict, const void *key,
 
 		/* If there is a loop, but we've seen an erased
 		 * element, take that one.  Otherwise give up.  */
-		if (++i > dict->size) {
+		if (++i > n(dict)) {
 			if (pos0 != (size_t)-1)
 				break;
 			return (size_t)-1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list