Use assert instead of if without else to ensure an object pointer is not NULL.
authorThomas Hunger <hto@arcor.de>
Fri, 21 Sep 2007 11:16:39 +0000 (13:16 +0200)
committerThomas Hunger <hto@arcor.de>
Fri, 21 Sep 2007 11:16:39 +0000 (13:16 +0200)
commit257cbde483436c4b0dc614773ba24f8123a7c01d
tree2c47723e373cf69d79b2bdf5cebb1e010d82b49a
parent174886bff063947cbe5bf5454e1e331b8c177e50
Use assert instead of if without else to ensure an object pointer is not NULL.

gcc complained that a variable might be used uninitialized, which is
true. If NULL is passed, all code gets executed with an
uninitialized variable which is an error in almost every case.
Since python itself never passes NULL, only a real error in
other c code could trigger the assert.
Cython/Compiler/Nodes.py