From 68a088d85177c4c8d08b32d549276b0f1a9a6700 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sun, 28 Feb 2021 16:11:37 +0100 Subject: [PATCH] CLEANUP: Use IST_NULL whenever possible Refactoring performed with the following Coccinelle patch: @@ @@ - ist2(NULL, 0) + IST_NULL --- src/http_fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_fetch.c b/src/http_fetch.c index c73546b..3d627a9 100644 --- a/src/http_fetch.c +++ b/src/http_fetch.c @@ -818,7 +818,7 @@ static int smp_fetch_fhdr_cnt(const struct arg *args, struct sample *smp, const if (args->type == ARGT_STR) { name = ist2(args->data.str.area, args->data.str.data); } else { - name = ist2(NULL, 0); + name = IST_NULL; } ctx.blk = NULL; @@ -954,7 +954,7 @@ static int smp_fetch_hdr_cnt(const struct arg *args, struct sample *smp, const c if (args->type == ARGT_STR) { name = ist2(args->data.str.area, args->data.str.data); } else { - name = ist2(NULL, 0); + name = IST_NULL; } ctx.blk = NULL; -- 1.7.10.4