Change a loop from 'while' to 'for' to properly handle 'continue'.  This is prevent an infinite loop in the case described at https://savannah.cern.ch/bugs/?20866
Change a loop from 'while' to 'for' to properly handle 'continue'.  This is prevent an infinite loop in the case described at https://savannah.cern.ch/bugs/?20866


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@16583 27541ba8-7e3a-0410-8455-c3a389f83636

veprbl/root,agarciamontoro/root,kirbyherm/root-r-tools,zzxuanyuan/root,perovic/root,alexschlueter/cern-root,sawenzel/root,cxx-hep/root-cern,agarciamontoro/root,cxx-hep/root-cern,simonpf/root,olifre/root,thomaskeck/root,simonpf/root,zzxuanyuan/root,omazapa/root-old,tc3t/qoot,olifre/root,sawenzel/root,bbockelm/root,root-mirror/root,georgtroska/root,esakellari/root,strykejern/TTreeReader,perovic/root,zzxuanyuan/root-compressor-dummy,karies/root,Y--/root,dfunke/root,krafczyk/root,CristinaCristescu/root,satyarth934/root,beniz/root,cxx-hep/root-cern,evgeny-boger/root,omazapa/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,beniz/root,karies/root,karies/root,arch1tect0r/root,cxx-hep/root-cern,ffurano/root5,thomaskeck/root,lgiommi/root,karies/root,mhuwiler/rootauto,root-mirror/root,vukasinmilosevic/root,evgeny-boger/root,tc3t/qoot,ffurano/root5,strykejern/TTreeReader,davidlt/root,zzxuanyuan/root,simonpf/root,tc3t/qoot,zzxuanyuan/root,omazapa/root,buuck/root,esakellari/my_root_for_test,CristinaCristescu/root,buuck/root,pspe/root,pspe/root,satyarth934/root,omazapa/root-old,mhuwiler/rootauto,gbitzes/root,karies/root,root-mirror/root,kirbyherm/root-r-tools,gbitzes/root,gganis/root,abhinavmoudgil95/root,CristinaCristescu/root,abhinavmoudgil95/root,arch1tect0r/root,nilqed/root,beniz/root,dfunke/root,simonpf/root,omazapa/root-old,olifre/root,thomaskeck/root,Y--/root,simonpf/root,mhuwiler/rootauto,jrtomps/root,vukasinmilosevic/root,beniz/root,georgtroska/root,Y--/root,sbinet/cxx-root,buuck/root,karies/root,krafczyk/root,omazapa/root,georgtroska/root,esakellari/my_root_for_test,beniz/root,evgeny-boger/root,omazapa/root-old,pspe/root,pspe/root,smarinac/root,Duraznos/root,lgiommi/root,georgtroska/root,zzxuanyuan/root-compressor-dummy,sirinath/root,buuck/root,cxx-hep/root-cern,Y--/root,lgiommi/root,veprbl/root,ffurano/root5,perovic/root,esakellari/my_root_for_test,mattkretz/root,evgeny-boger/root,gbitzes/root,alexschlueter/cern-root,esakellari/my_root_for_test,bbockelm/root,mhuwiler/rootauto,nilqed/root,smarinac/root,sawenzel/root,kirbyherm/root-r-tools,sbinet/cxx-root,cxx-hep/root-cern,gbitzes/root,davidlt/root,nilqed/root,esakellari/root,mhuwiler/rootauto,agarciamontoro/root,mhuwiler/rootauto,bbockelm/root,bbockelm/root,buuck/root,dfunke/root,mhuwiler/rootauto,pspe/root,arch1tect0r/root,georgtroska/root,abhinavmoudgil95/root,arch1tect0r/root,esakellari/root,Y--/root,veprbl/root,davidlt/root,kirbyherm/root-r-tools,evgeny-boger/root,perovic/root,davidlt/root,mhuwiler/rootauto,sirinath/root,perovic/root,dfunke/root,Dr15Jones/root,dfunke/root,sawenzel/root,mkret2/root,satyarth934/root,buuck/root,karies/root,satyarth934/root,CristinaCristescu/root,nilqed/root,sawenzel/root,BerserkerTroll/root,arch1tect0r/root,sbinet/cxx-root,dfunke/root,davidlt/root,olifre/root,kirbyherm/root-r-tools,lgiommi/root,vukasinmilosevic/root,pspe/root,agarciamontoro/root,jrtomps/root,mkret2/root,jrtomps/root,esakellari/my_root_for_test,jrtomps/root,karies/root,gganis/root,krafczyk/root,esakellari/root,BerserkerTroll/root,georgtroska/root,strykejern/TTreeReader,veprbl/root,omazapa/root,Duraznos/root,mkret2/root,omazapa/root,pspe/root,gganis/root,Y--/root,davidlt/root,mattkretz/root,Duraznos/root,abhinavmoudgil95/root,BerserkerTroll/root,veprbl/root,mkret2/root,olifre/root,simonpf/root,nilqed/root,zzxuanyuan/root-compressor-dummy,Dr15Jones/root,sbinet/cxx-root,evgeny-boger/root,beniz/root,omazapa/root-old,Y--/root,smarinac/root,bbockelm/root,tc3t/qoot,Duraznos/root,0x0all/ROOT,simonpf/root,ffurano/root5,BerserkerTroll/root,agarciamontoro/root,arch1tect0r/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,perovic/root,mhuwiler/rootauto,omazapa/root-old,kirbyherm/root-r-tools,simonpf/root,vukasinmilosevic/root,gganis/root,esakellari/root,mattkretz/root,root-mirror/root,jrtomps/root,arch1tect0r/root,esakellari/root,root-mirror/root,krafczyk/root,0x0all/ROOT,gbitzes/root,veprbl/root,root-mirror/root,beniz/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,krafczyk/root,sirinath/root,arch1tect0r/root,veprbl/root,omazapa/root-old,davidlt/root,mkret2/root,kirbyherm/root-r-tools,pspe/root,satyarth934/root,Dr15Jones/root,root-mirror/root,krafczyk/root,Dr15Jones/root,omazapa/root,Duraznos/root,thomaskeck/root,smarinac/root,sbinet/cxx-root,karies/root,zzxuanyuan/root,beniz/root,buuck/root,beniz/root,Dr15Jones/root,smarinac/root,gganis/root,CristinaCristescu/root,dfunke/root,strykejern/TTreeReader,sirinath/root,satyarth934/root,0x0all/ROOT,gganis/root,lgiommi/root,lgiommi/root,lgiommi/root,sawenzel/root,tc3t/qoot,vukasinmilosevic/root,Y--/root,dfunke/root,sirinath/root,esakellari/root,thomaskeck/root,sirinath/root,buuck/root,omazapa/root,mkret2/root,zzxuanyuan/root,lgiommi/root,bbockelm/root,abhinavmoudgil95/root,dfunke/root,davidlt/root,0x0all/ROOT,esakellari/root,CristinaCristescu/root,omazapa/root,BerserkerTroll/root,Dr15Jones/root,beniz/root,gganis/root,lgiommi/root,CristinaCristescu/root,abhinavmoudgil95/root,perovic/root,gbitzes/root,ffurano/root5,satyarth934/root,olifre/root,zzxuanyuan/root,davidlt/root,nilqed/root,smarinac/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,buuck/root,nilqed/root,gbitzes/root,simonpf/root,BerserkerTroll/root,gganis/root,vukasinmilosevic/root,0x0all/ROOT,georgtroska/root,mkret2/root,alexschlueter/cern-root,mattkretz/root,0x0all/ROOT,sawenzel/root,CristinaCristescu/root,thomaskeck/root,Duraznos/root,esakellari/my_root_for_test,abhinavmoudgil95/root,sawenzel/root,krafczyk/root,sbinet/cxx-root,krafczyk/root,georgtroska/root,smarinac/root,mkret2/root,sbinet/cxx-root,sbinet/cxx-root,perovic/root,tc3t/qoot,nilqed/root,CristinaCristescu/root,sawenzel/root,jrtomps/root,simonpf/root,CristinaCristescu/root,veprbl/root,ffurano/root5,cxx-hep/root-cern,zzxuanyuan/root,olifre/root,sbinet/cxx-root,thomaskeck/root,sirinath/root,thomaskeck/root,evgeny-boger/root,zzxuanyuan/root,georgtroska/root,mkret2/root,gbitzes/root,sirinath/root,tc3t/qoot,BerserkerTroll/root,dfunke/root,mhuwiler/rootauto,karies/root,sirinath/root,gbitzes/root,abhinavmoudgil95/root,mattkretz/root,root-mirror/root,zzxuanyuan/root,bbockelm/root,omazapa/root-old,nilqed/root,CristinaCristescu/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,thomaskeck/root,zzxuanyuan/root,strykejern/TTreeReader,mattkretz/root,esakellari/root,arch1tect0r/root,BerserkerTroll/root,pspe/root,omazapa/root,pspe/root,georgtroska/root,krafczyk/root,vukasinmilosevic/root,0x0all/ROOT,0x0all/ROOT,vukasinmilosevic/root,zzxuanyuan/root-compressor-dummy,olifre/root,mattkretz/root,arch1tect0r/root,cxx-hep/root-cern,agarciamontoro/root,root-mirror/root,root-mirror/root,veprbl/root,esakellari/root,strykejern/TTreeReader,agarciamontoro/root,krafczyk/root,gganis/root,ffurano/root5,gganis/root,mhuwiler/rootauto,vukasinmilosevic/root,root-mirror/root,agarciamontoro/root,BerserkerTroll/root,bbockelm/root,davidlt/root,buuck/root,gganis/root,lgiommi/root,esakellari/my_root_for_test,veprbl/root,bbockelm/root,omazapa/root-old,vukasinmilosevic/root,omazapa/root-old,omazapa/root,bbockelm/root,perovic/root,tc3t/qoot,satyarth934/root,zzxuanyuan/root-compressor-dummy,mattkretz/root,mattkretz/root,Dr15Jones/root,dfunke/root,zzxuanyuan/root,evgeny-boger/root,buuck/root,sirinath/root,lgiommi/root,BerserkerTroll/root,0x0all/ROOT,simonpf/root,sbinet/cxx-root,esakellari/my_root_for_test,alexschlueter/cern-root,beniz/root,Duraznos/root,sawenzel/root,agarciamontoro/root,alexschlueter/cern-root,alexschlueter/cern-root,evgeny-boger/root,sirinath/root,omazapa/root,jrtomps/root,arch1tect0r/root,mattkretz/root,nilqed/root,sbinet/cxx-root,sawenzel/root,perovic/root,smarinac/root,nilqed/root,alexschlueter/cern-root,tc3t/qoot,mattkretz/root,Y--/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,karies/root,agarciamontoro/root,pspe/root,olifre/root,Duraznos/root,krafczyk/root,agarciamontoro/root,vukasinmilosevic/root,mkret2/root,abhinavmoudgil95/root,Duraznos/root,davidlt/root,gbitzes/root,mkret2/root,evgeny-boger/root,olifre/root,satyarth934/root,satyarth934/root,olifre/root,Duraznos/root,georgtroska/root,Y--/root,gbitzes/root,Y--/root,jrtomps/root,BerserkerTroll/root,veprbl/root,esakellari/root,Duraznos/root,smarinac/root,satyarth934/root,perovic/root,strykejern/TTreeReader,abhinavmoudgil95/root,tc3t/qoot,jrtomps/root,smarinac/root,jrtomps/root