summaryrefslogtreecommitdiff
path: root/keyword.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyword.c')
-rw-r--r--keyword.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyword.c b/keyword.c
index 16db0a2..24db8d9 100644
--- a/keyword.c
+++ b/keyword.c
@@ -46,7 +46,7 @@ keyword_val get_keyword_value(const keyword *key, char *value, int *error) {
}
int set_keyword(const keyword *key, keyword_val val, void *ret, void *ctx) {
- const int callback_ret = (key->callback != NULL) ? key->callback(ctx, ret, key, val) : 0;
+ const int callback_ret = (key->set_callback != NULL) ? key->set_callback(ctx, ret, key, val) : 0;
if (callback_ret < 0 || callback_ret > 0) {
return (callback_ret > 0) ? 0 : 5;
} else {