Cosmetics: fixed static analysis issues.

This commit is contained in:
Felipe Zimmerle
2020-01-15 20:35:59 -03:00
parent 1fc5847919
commit 86a5f471a9
21 changed files with 54 additions and 40 deletions

View File

@@ -200,13 +200,13 @@ RegressionTest *RegressionTest::from_yajl_node(const yajl_val &node) {
}
}
if (strcmp(key, "rules") == 0) {
std::stringstream i;
std::stringstream si;
for (int j = 0; j < val->u.array.len; j++) {
yajl_val val2 = val->u.array.values[ j ];
const char *key = YAJL_GET_STRING(val2);
i << key << "\n";
const char *keyj = YAJL_GET_STRING(val2);
si << keyj << "\n";
}
u->rules = i.str();
u->rules = si.str();
}
}