r51433 - python/trunk/Python/compile.c
21 Aug
2006
21 Aug
'06
6:01 p.m.
Author: neal.norwitz Date: Mon Aug 21 20:01:30 2006 New Revision: 51433 Modified: python/trunk/Python/compile.c Log: Add assert to make Klocwork happy (#276) Modified: python/trunk/Python/compile.c ============================================================================== --- python/trunk/Python/compile.c (original) +++ python/trunk/Python/compile.c Mon Aug 21 20:01:30 2006 @@ -568,6 +568,7 @@ if (n >= 0) { wrapper = PyList_GET_ITEM(c->c_stack, n); c->u = (struct compiler_unit *)PyCObject_AsVoidPtr(wrapper); + assert(c->u); /* we are deleting from a list so this really shouldn't fail */ if (PySequence_DelItem(c->c_stack, n) < 0) Py_FatalError("compiler_exit_scope()");
6717
Age (days ago)
6717
Last active (days ago)
0 comments
1 participants
participants (1)
-
neal.norwitz