From 8132c5317e1a7b261b5c4098f9b85e3e76e9708c Mon Sep 17 00:00:00 2001 From: Junaid Date: Tue, 12 Apr 2011 08:09:24 +0000 Subject: libglusterfs/dict: Donot perform NULL check on data in dict_foreach. Signed-off-by: Junaid Signed-off-by: Anand Avati BUG: 1816 (send volume options in friend add) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1816 --- libglusterfs/src/dict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 05bcd4406..e1c87d994 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -1236,9 +1236,9 @@ dict_foreach (dict_t *dict, void *data), void *data) { - if (!data || !dict) { + if (!dict) { gf_log_callingfn ("dict", GF_LOG_CRITICAL, - "@data=%p, @dict=%p", data, dict); + "@dict=%p", dict); return; } -- cgit