Switched clear_mem from setting to value 0 to value \0.