mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
'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;
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user