summaryrefslogtreecommitdiffstats
path: root/src/fuzz/fuzz-calendarspec.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-09 08:57:36 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-10 13:06:32 +0200
commitb456b09b25bf92357ee04f6586a5915a02622467 (patch)
treed5abc4ecfcc90c3c306e8088cb2c83b9eb454c86 /src/fuzz/fuzz-calendarspec.c
parentresolve: reallocate DNS scope when DNSSEC and/or DNS-over-TLS settings are ch... (diff)
downloadsystemd-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.c1
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);
}