Eliminate warning: operation may be undefined

shared.c: In function 'serverId':
shared.c:2138:21: warning: operation on 'dev->shrdid' may be undefined
[-Wsequence-point]