diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-09 08:57:36 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-10 13:06:32 +0200 |
commit | b456b09b25bf92357ee04f6586a5915a02622467 (patch) | |
tree | d5abc4ecfcc90c3c306e8088cb2c83b9eb454c86 /src/fuzz/fuzz-calendarspec.c | |
parent | resolve: reallocate DNS scope when DNSSEC and/or DNS-over-TLS settings are ch... (diff) | |
download | systemd-b456b09b25bf92357ee04f6586a5915a02622467.tar.xz systemd-b456b09b25bf92357ee04f6586a5915a02622467.zip |
shared/calendarspec: make function static void
calendar_spec_from_string() already calls calendar_spec_normalize(), so
there is no point in calling it from the fuzzer. Once that's removed, there's
just one internal caller and it can be made static.
Diffstat (limited to 'src/fuzz/fuzz-calendarspec.c')
-rw-r--r-- | src/fuzz/fuzz-calendarspec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/fuzz/fuzz-calendarspec.c b/src/fuzz/fuzz-calendarspec.c index 80801723fd..07d3fbca7f 100644 --- a/src/fuzz/fuzz-calendarspec.c +++ b/src/fuzz/fuzz-calendarspec.c @@ -16,7 +16,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if (calendar_spec_from_string(str, &cspec) >= 0) { (void) calendar_spec_valid(cspec); - (void) calendar_spec_normalize(cspec); (void) calendar_spec_to_string(cspec, &p); } |