]> granicus.if.org Git - curl/commit
connect: make sure that rc is initialized in singleipconnect()
authorKamil Dudka <kdudka@redhat.com>
Tue, 19 Apr 2016 07:38:44 +0000 (09:38 +0200)
committerKamil Dudka <kdudka@redhat.com>
Tue, 19 Apr 2016 07:38:44 +0000 (09:38 +0200)
commitad3d40d40707f1c5f37f878a61de4a8f0aeac2b8
treecc1cf160293e2be2216c6ce5bba2e801a19db913
parenta07727005a14e97c79c4a029db4569cd142fb5c6
connect: make sure that rc is initialized in singleipconnect()

This commit fixes a Clang warning introduced in curl-7_48_0-190-g8f72b13:

Error: CLANG_WARNING:
lib/connect.c:1120:11: warning: The right operand of '==' is a garbage value
1118|       }
1119|
1120|->     if(-1 == rc)
1121|         error = SOCKERRNO;
1122|     }
lib/connect.c