diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-21 18:01:30 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-21 18:01:30 (GMT) |
commit | 87557cd72a75ee3d7e8c6a53ee01bab0bc6ec73a (patch) | |
tree | 82d16a94ade8b6981ef6a470f6f4803548eec490 /Python | |
parent | 8a519392d5be32adf77ceab86f7f637a7e0835f5 (diff) | |
download | cpython-87557cd72a75ee3d7e8c6a53ee01bab0bc6ec73a.zip cpython-87557cd72a75ee3d7e8c6a53ee01bab0bc6ec73a.tar.gz cpython-87557cd72a75ee3d7e8c6a53ee01bab0bc6ec73a.tar.bz2 |
Add assert to make Klocwork happy (#276)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 067c04d..5aaf809 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -568,6 +568,7 @@ compiler_exit_scope(struct compiler *c) 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()"); |