folly/io/async/AsyncSocket.cpp: avoid shadowing warning for "rv"
[folly.git] / folly / io / async / AsyncSocket.cpp
index bb41685dd3d3fb5a70befadf68cec62cc25d3597..b1bbba24120eb59fb86c3fbda6b30848b05d0c9c 100644 (file)
@@ -418,7 +418,7 @@ void AsyncSocket::connect(ConnectCallback* callback,
 
     // Apply the additional options if any.
     for (const auto& opt: options) {
-      int rv = opt.first.apply(fd_, opt.second);
+      rv = opt.first.apply(fd_, opt.second);
       if (rv != 0) {
         auto errnoCopy = errno;
         throw AsyncSocketException(