mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
[LibOS] Make regression/getsockopt return 0 on success
Previously, `rv` was uninitialized in case of success.
This commit is contained in:
committed by
Michał Kowalczyk
parent
56f93d3a9f
commit
0031ef90c8
@@ -14,7 +14,7 @@ int main(int argc,char **argv) {
|
||||
int s = -1; /* Socket */
|
||||
int so_type = -1; /* Socket type */
|
||||
socklen_t optlen; /* Option length */
|
||||
int rv;
|
||||
int rv = 0;
|
||||
|
||||
/*
|
||||
* Create a TCP/IP socket to use:
|
||||
|
||||
Reference in New Issue
Block a user