Project

General

Profile

Actions

Bug #12203

closed

dumper.c static int yaml_emitter_dump_scalar two variables have the same value

Added by fanantoxa (Anton Sivakov) about 8 years ago. Updated almost 7 years ago.

Status:
Third Party's Issue
Target version:
-
[ruby-core:74474]

Description

static int
yaml_emitter_dump_scalar(
.....
int plain_implicit = (strcmp((char *)node->tag,
               YAML_DEFAULT_SCALAR_TAG) == 0);
int quoted_implicit = (strcmp((char *)node->tag,
                YAML_DEFAULT_SCALAR_TAG) == 0);

variables 'plain_implicit' and 'quoted_implicit' have the same values. It possible wrong expression or this code can be optimized.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0