[asterisk-commits] russell: branch 1.8 r359157 - /branches/1.8/main/sched.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 13 20:32:36 CDT 2012


Author: russell
Date: Tue Mar 13 20:32:28 2012
New Revision: 359157

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359157
Log:
Fix inaccurate sizeof() in sched.c.

This code just needed sizeof(int), not sizeof(int *).

Modified:
    branches/1.8/main/sched.c

Modified: branches/1.8/main/sched.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/sched.c?view=diff&rev=359157&r1=359156&r2=359157
==============================================================================
--- branches/1.8/main/sched.c (original)
+++ branches/1.8/main/sched.c Tue Mar 13 20:32:28 2012
@@ -469,7 +469,7 @@
 	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));
 




More information about the asterisk-commits mailing list