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:
parent
939470df52
commit
b9a99de158
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user