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.
This commit is contained in:
Jef Driesen 2021-01-24 08:23:34 +01:00
parent 939470df52
commit b9a99de158

View File

@ -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