mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
Fix inaccurate sizeof() in sched.c.
This code just needed sizeof(int), not sizeof(int *). ........ Merged revisions 359157 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 359162 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -440,7 +440,7 @@ int _ast_sched_del(struct ast_sched_context *con, int id, const char *file, int
|
|||||||
struct sched *s, tmp = {
|
struct sched *s, tmp = {
|
||||||
.id = id,
|
.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));
|
DEBUG(ast_debug(1, "ast_sched_del(%d)\n", id));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user