numpy/numpy — pull request #4535 by juliantaylor (2014-03-23 11:39:21+00:00)
Title: BUG: fix uninitialized use of size 1 reductions

Size 1 reductions do not intiialize the iterator fully as normal
reductions which triggers uninitialized use in NpyIter_IsFirstVisit.
To fix this check the size of the iterator and return true if it only
has size 1.