[LibOS] Make regression/getsockopt return 0 on success

Previously, `rv` was uninitialized in case of success.
This commit is contained in:
Isaku Yamahata
2019-08-02 22:49:53 +02:00
committed by Michał Kowalczyk
parent 56f93d3a9f
commit 0031ef90c8
+1 -1
View File
@@ -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: