Skip to content

CID 1518612: Logically dead code #10332

@maskit

Description

@maskit
227  /* call the core function that does actual checking and stripping */
228  retval = stripped_core(r, in_end, &w, out_end, flags);
229
230  /* null terminate */
   	notnull: At condition out_end, the value of out_end cannot be nullptr.
   	dead_error_condition: The condition out_end must be true.
   	
CID 1518612 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach the expression 0 inside this statement: out_end += (out_end ? 1 : 0);.
231  out_end += out_end ? 1 : 0;            /* undo decrement at start */
232  write_char_if_room(&w, out_end, '\0'); /* try to term at end of output */

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions