]> granicus.if.org Git - pdns/commitdiff
Make sure rd is initialized. Fixes #1646
authorAki Tuomi <cmouse@desteem.org>
Tue, 12 Aug 2014 20:29:41 +0000 (23:29 +0300)
committerAki Tuomi <cmouse@desteem.org>
Tue, 12 Aug 2014 20:29:41 +0000 (23:29 +0300)
modules/remotebackend/httpconnector.cc

index 01938dbbd1e20be1df0bddea4c9d56dd5430b325..f407edc5e608fa885e6159b6667d49c34df137ab 100644 (file)
@@ -348,7 +348,7 @@ int HTTPConnector::recv_message(rapidjson::Document &output) {
 
     if (d_socket == NULL ) return -1; // cannot receive :(
     char buffer[4096];
-    int rd;
+    int rd = -1;
 
     arl.initialize(&resp);