mm: fix 'ERROR: do not initialise globals to 0 or NULL' and coding style