From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B72AA1F44D for ; Sun, 24 Mar 2024 07:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1711264821; bh=Oii9mX/LlzVB+wjUqw+Cs2KvIsEVJcyO/uK/3YhSWFU=; h=From:To:Subject:Date:From; b=irlAzhRiqvBHJTUgEqiLzJ0E2F+b72EbBDeHx9FdaWMqCVjJSiiJiR0UqqGZiREKG i37ka/I2mnvF1hZm+uPAPXRCnR0kLmFrenQMxdBFpm18POZdipXLAYK4Y8bVz0RW9U eW1Zv+U27drQf0i12a6cZ4bl8wsHvXbwR3njmI1E= From: Eric Wong To: spew@80x24.org Subject: [PATCH] use kh_size Date: Sun, 24 Mar 2024 07:20:21 +0000 Message-ID: <20240324072021.4054361-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- list-objects-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list-objects-filter.c b/list-objects-filter.c index 4346f8da45..440f112d23 100644 --- a/list-objects-filter.c +++ b/list-objects-filter.c @@ -704,7 +704,7 @@ static void filter_combine__free(void *filter_data) for (sub = 0; sub < d->nr; sub++) { list_objects_filter__free(d->sub[sub].filter); oidset_clear(&d->sub[sub].seen); - if (d->sub[sub].omits.set.size) + if (kh_size(&d->sub[sub].omits.set)) BUG("expected oidset to be cleared already"); } free(d->sub);