diff --git a/main/sched.c b/main/sched.c index bab8cfbe60f63534b0d3b9f2d9a9153e699f3355..d86e5befd8fc106d97641313cc8dc52278de52d5 100644 --- a/main/sched.c +++ b/main/sched.c @@ -440,7 +440,7 @@ int _ast_sched_del(struct ast_sched_context *con, int id, const char *file, int struct sched *s, tmp = { .id = id, }; - int *last_id = ast_threadstorage_get(&last_del_id, sizeof(int *)); + int *last_id = ast_threadstorage_get(&last_del_id, sizeof(int)); DEBUG(ast_debug(1, "ast_sched_del(%d)\n", id));