Skip to content

Commit 1e6aa82

Browse files
Add an assert.
1 parent b97326f commit 1e6aa82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/codeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,8 @@ identify_unbound_names(PyThreadState *tstate, PyCodeObject *co,
17661766
void
17671767
_PyCode_GetVarCounts(PyCodeObject *co, _PyCode_var_counts_t *counts)
17681768
{
1769+
assert(counts != NULL);
1770+
17691771
// Count the locals, cells, and free vars.
17701772
struct co_locals_counts locals = {0};
17711773
int numfree = 0;

0 commit comments

Comments
 (0)