Kristján Valur Jónsson <krist...@ccpgames.com> added the comment:

I'm sure you didn't intend to use words such as "wrong" and "useless" Victor.  
Perhaps n must be 0 even for argc>0, but I did that as an afterthought. Which 
is the reason I asked you to take a look rather than committing this right away.

Please allow me to point out that relying on an extra NULL pointer at the end 
of argv is dangerous.  C makes no such guarantees with main() and you are 
coupling implementation details betweeen layers using this.  The "correct" 
thing to do is to simply not dereference argv at argc or beyond.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3367>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to