[asterisk-commits] russell: branch 10 r359162 - in /branches/10: ./ main/sched.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 13 20:34:05 CDT 2012
Author: russell
Date: Tue Mar 13 20:33:58 2012
New Revision: 359162
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359162
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
Modified:
branches/10/ (props changed)
branches/10/main/sched.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/main/sched.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/sched.c?view=diff&rev=359162&r1=359161&r2=359162
==============================================================================
--- branches/10/main/sched.c (original)
+++ branches/10/main/sched.c Tue Mar 13 20:33:58 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