Critical MemLogLib error & style

Import critical error fix from Clover (r2447 by asava).

Replace tabs with two spaces