Merge pull request #13092 from keszybz/coverity-fixes

Coverity fixes
This commit is contained in:
Lennart Poettering
2019-07-17 14:18:49 +02:00
committed by GitHub
12 changed files with 96 additions and 89 deletions
+8 -1
View File
@@ -233,7 +233,14 @@ static void test_config_parse_match_strv(void) {
assert_se(config_parse_match_strv("network", "filename", 1, "section", 1, "Name", 0,
"KEY=val \"KEY2=val with space\" \"KEY3=val with \\\"quotation\\\"\"", &names, NULL) == 0);
strv_equal(names, STRV_MAKE("!hoge", "!hogehoge", "!foo", "!baz", "KEY=val", "KEY2=val with space", "KEY3=val with \"quotation\""));
assert_se(strv_equal(names,
STRV_MAKE("!hoge",
"!hogehoge",
"!foo",
"!baz",
"KEY=val",
"KEY2=val with space",
"KEY3=val with \"quotation\"")));
}
int main(int argc, char **argv) {