[asterisk-commits] russell: trunk r359166 - in /trunk: ./ main/sched.c

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


Author: russell
Date: Tue Mar 13 20:35:30 2012
New Revision: 359166

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359166
Log:
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

Modified:
    trunk/   (props changed)
    trunk/main/sched.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: trunk/main/sched.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/sched.c?view=diff&rev=359166&r1=359165&r2=359166
==============================================================================
--- trunk/main/sched.c (original)
+++ trunk/main/sched.c Tue Mar 13 20:35:30 2012
@@ -440,7 +440,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