Fix uninitialized warning for flags

Change-Id: Ibaf2841733c508470d88b4d97110ae060bdec643
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
ipc/shm.c: fix: warning: 'ret' may be used uninitialized in this function

Change-Id: I8b4a8a356c30ed18bcf6389891f5a07a61584fec
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
net/socket.c: fix: warning: 'sock/sock1/sock2' may be used uninitialized in this function

Change-Id: Ib24181995937e219c4c3c30d8823c88873d1f498
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>