2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

files: Add case::default in open_fd

Otherwise I'm getting error
 |
 | files.c: In function ‘prepare_fds’:
 | files.c:329:23: error: ‘tmp’ may be used uninitialized in this function [-Werror=uninitialized]
 | files.c:309:6: note: ‘tmp’ was declared here

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-03-29 21:47:00 +04:00
committed by Pavel Emelyanov
parent adc161a108
commit e857977bb6

View File

@@ -318,6 +318,9 @@ static int open_fd(int pid, struct fdinfo_entry *fe,
case FDINFO_INETSK:
tmp = open_inet_sk(fe);
break;
default:
tmp = -1;
break;
}
if (tmp < 0)