fixing an uninitialised member field bug in sharedmem_common