]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix inaccurate sizeof() in sched.c.
authorRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 01:32:28 +0000 (01:32 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 01:32:28 +0000 (01:32 +0000)
This code just needed sizeof(int), not sizeof(int *).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359157 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sched.c

index 8a3602a397ac8d6c1cea1758a5cd3d921b5e7c8a..b27358c39a2a14e83ff8ee88ff0d12c9f916431f 100644 (file)
@@ -469,7 +469,7 @@ int _ast_sched_del(struct sched_context *con, int id, const char *file, int line
        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));