Itseez/opencv — pull request #415 by asmaloney (2013-02-02 03:59:05+00:00)
Title: cvCopyHist bugfix and cleanup

Fix subtle bug when src & dst agree on sparsity but have different dimensions
Remove unused var "total"
Declare vars as locally as possible