diff Python/compile.c @ 39605:db42e87c9776 legacy-trunk

Add assert to make Klocwork happy (#276)
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 21 Aug 2006 18:01:30 +0000
parents 5e143944770b
children 17f1df1553c9
line wrap: on
line diff
--- a/Python/compile.c	Mon Aug 21 17:59:46 2006 +0000
+++ b/Python/compile.c	Mon Aug 21 18:01:30 2006 +0000
@@ -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()");