diff options
author | Nelson Elhage <nelhage@nelhage.com> | 2018-10-11 13:27:06 +0000 |
---|---|---|
committer | Nelson Elhage <nelhage@nelhage.com> | 2018-10-11 13:27:06 +0000 |
commit | 463c21e2c10e82d8e5ba4e3e7e908052f2b739f6 (patch) | |
tree | 14fb78ec24beb0ac37355b7b8983efa5b2b6561a /fuzzers/config_file_fuzzer.c | |
parent | 416aafd14cd4e56db3d4ea6067881b29085af4bb (diff) | |
download | libgit2-463c21e2c10e82d8e5ba4e3e7e908052f2b739f6.tar.gz |
Apply code review feedback
Diffstat (limited to 'fuzzers/config_file_fuzzer.c')
-rw-r--r-- | fuzzers/config_file_fuzzer.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fuzzers/config_file_fuzzer.c b/fuzzers/config_file_fuzzer.c index f0fa5e58e..fa52642ae 100644 --- a/fuzzers/config_file_fuzzer.c +++ b/fuzzers/config_file_fuzzer.c @@ -43,20 +43,17 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) git_config_backend *backend = NULL; int err = 0; - err = git_config_new(&cfg); - if (err != 0) { + if ((err = git_config_new(&cfg)) != 0) { goto out; } - err = git_config_backend_from_string(&backend, (const char*)data, size); - if (err != 0) { + if ((err = git_config_backend_from_string(&backend, (const char*)data, size)) != 0) { goto out; } - err = git_config_add_backend(cfg, backend, 0, NULL, 0); - if (err != 0) { + if ((err = git_config_add_backend(cfg, backend, 0, NULL, 0)) != 0) { goto out; } - // Now owned by the config + /* Now owned by the config */ backend = NULL; git_config_foreach(cfg, foreach_cb, NULL); |