]> granicus.if.org Git - python/commit
cpathname could be NULL if it was longer than MAXPATHLEN. Don't try
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 13 Aug 2006 18:10:47 +0000 (18:10 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 13 Aug 2006 18:10:47 +0000 (18:10 +0000)
commit3cb31ac704c98fa8a5b9e31a3bd4a8f25bf3d679
tree093a969fe889cb7a53fec93e3cbf57abe00c4a8b
parentb09f4f578f1e60cf15dde1f5cbdec8a50a9af67b
cpathname could be NULL if it was longer than MAXPATHLEN.  Don't try
to write the .pyc to NULL.

Check results of PyList_GetItem() and PyModule_GetDict() are not NULL.

Klocwork 282, 283, 285
Python/import.c