do not run the memmoves() on the last element. break out of the search loop afterwards, we got what we needed.
do not run the memmoves() on the last element.
break out of the search loop afterwards, we got what we needed.


git-svn-id: 40dd595c6684d839db675001a64203a1457e7319@11661 67ed7778-7388-44ab-90cf-0a291f65f57c

gphoto/libgphoto2,thusoy/libgphoto2,msmeissn/libgphoto2,gphoto/libgphoto2,thusoy/libgphoto2,msmeissn/libgphoto2,gphoto/libgphoto2,jbreeden/libgphoto2,msmeissn/libgphoto2,gphoto/libgphoto2,thusoy/libgphoto2,jbreeden/libgphoto2,msmeissn/libgphoto2,thusoy/libgphoto2,jbreeden/libgphoto2,jbreeden/libgphoto2,thusoy/libgphoto2,msmeissn/libgphoto2,gphoto/libgphoto2,jbreeden/libgphoto2,gphoto/libgphoto2