From 6ac425df31c1545348a64780f61fbd4e8ca9c57c Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Wed, 14 Mar 2012 01:35:30 +0000
Subject: [PATCH] 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
---
 main/sched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/sched.c b/main/sched.c
index bab8cfbe60..d86e5befd8 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));
 
-- 
GitLab