Skip to content
Snippets Groups Projects
Commit 6ac425df authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent c1d91944
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment