diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2020-09-29 05:37:20 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2020-09-30 00:09:58 (GMT) |
commit | 392809d66e6c98a7c8653a2a32f6843af0f4306a (patch) | |
tree | 7fa07658ee0a800faeb531bc29110ff69a9dd6cd /ossfuzz/fuzz_data_producer.c | |
parent | 78f4fdbb89e71325cedc751e1f7c2403bb43c3f4 (diff) | |
download | lz4-392809d66e6c98a7c8653a2a32f6843af0f4306a.zip lz4-392809d66e6c98a7c8653a2a32f6843af0f4306a.tar.gz lz4-392809d66e6c98a7c8653a2a32f6843af0f4306a.tar.bz2 |
fix minor static analyzer warnings
detected by scan-build and cppcheck
fix #786
Diffstat (limited to 'ossfuzz/fuzz_data_producer.c')
-rw-r--r-- | ossfuzz/fuzz_data_producer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ossfuzz/fuzz_data_producer.c b/ossfuzz/fuzz_data_producer.c index cc06958..670fbf5 100644 --- a/ossfuzz/fuzz_data_producer.c +++ b/ossfuzz/fuzz_data_producer.c @@ -5,8 +5,8 @@ struct FUZZ_dataProducer_s{ size_t size; }; -FUZZ_dataProducer_t *FUZZ_dataProducer_create(const uint8_t *data, size_t size) { - FUZZ_dataProducer_t *producer = malloc(sizeof(FUZZ_dataProducer_t)); +FUZZ_dataProducer_t* FUZZ_dataProducer_create(const uint8_t* data, size_t size) { + FUZZ_dataProducer_t* const producer = malloc(sizeof(FUZZ_dataProducer_t)); FUZZ_ASSERT(producer != NULL); |