Cleanup digest source.

Removes an unnecessary cast and variable initialization.
Merge pull request #1256 from redstar/digestcleanup

Cleanup digest source.