From aa101260d964db5552c6107254a545ba8d583bbb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 5 Feb 2020 15:55:08 +1100 Subject: [PATCH] 'indentctx' is always defined. Just use it. 402 ctx->serve_stale_ttl = 0; notnull: At condition indentctx, the value of indentctx cannot be NULL. dead_error_condition: The condition indentctx must be true. CID 1456147 (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach the expression default_indent inside this statement: ctx->indent = (indentctx ? .... 403 ctx->indent = indentctx ? *indentctx : default_indent; --- lib/dns/masterdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index 662652bf8a..f3f02d049b 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -400,7 +400,7 @@ totext_ctx_init(const dns_master_style_t *style, const dns_indent_t *indentctx, ctx->current_ttl = 0; ctx->current_ttl_valid = false; ctx->serve_stale_ttl = 0; - ctx->indent = indentctx ? *indentctx : default_indent; + ctx->indent = *indentctx; return (ISC_R_SUCCESS); }