]> granicus.if.org Git - python/commit
Backport 58332: Fix Coverity #159.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 5 Oct 2007 05:05:24 +0000 (05:05 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 5 Oct 2007 05:05:24 +0000 (05:05 +0000)
commitc9f22b954fd8b35eae4adef0652d27473edfdd44
treecc258f95112d0318830018a3a2c83d430d8bf7bc
parent14f848bb22e88cac0010980e34caf11d00331740
Backport 58332: Fix Coverity #159.

This code was broken if save() returned a negative number since i contained
a boolean value and then we compared i < 0 which should never be true.
Modules/cPickle.c