Don't set gi_frame to Py_None, use NULL instead, eliminating some insane

pointer dereferences.
This commit is contained in:
Phillip J. Eby 2006-04-12 19:07:15 +00:00
parent 5f445bf3df
commit 8920bf24f8
2 changed files with 8 additions and 7 deletions

View file

@ -13,6 +13,7 @@ typedef struct {
PyObject_HEAD
/* The gi_ prefix is intended to remind of generator-iterator. */
/* Note: gi_frame can be NULL if the generator is "finished" */
struct _frame *gi_frame;
/* True if generator is being executed. */