From baae2cbc92accf4fa53a7b8faaf3df1153c943f5 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sat, 19 Nov 2016 17:12:11 +0100 Subject: FuzzerInitialize always exists There was a time it could be NULL, but that was changed to always have it. Reviewed-by: Rich Salz GH: #2023 --- fuzz/driver.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fuzz/driver.c b/fuzz/driver.c index 2c16a5e2e6..d4b11cd6a4 100644 --- a/fuzz/driver.c +++ b/fuzz/driver.c @@ -17,9 +17,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) { - if (FuzzerInitialize) - return FuzzerInitialize(argc, argv); - return 0; + return FuzzerInitialize(argc, argv); } int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) @@ -33,8 +31,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) int main(int argc, char** argv) { - if (FuzzerInitialize) - FuzzerInitialize(&argc, &argv); + FuzzerInitialize(&argc, &argv); while (__AFL_LOOP(10000)) { uint8_t *buf = malloc(BUF_SIZE); -- cgit v1.2.3