From b9a99de1582bf6d799426ee301626173a32345df Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sun, 24 Jan 2021 08:23:34 +0100 Subject: [PATCH] Fix the oceanic filter function The matching functions expect a pointer to the value as argument, and not the value itself. Since a C string is already a pointer (to a NULL terminated character array), an extra pointer indirection is required. --- src/descriptor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/descriptor.c b/src/descriptor.c index 7f4a966..60a8fbd 100644 --- a/src/descriptor.c +++ b/src/descriptor.c @@ -486,7 +486,9 @@ dc_match_oceanic (const void *key, const void *value) 0 }; - return dc_match_number_with_prefix (key, &prefix); + const char *p = prefix; + + return dc_match_number_with_prefix (key, &p); } static int