Permalink
Browse files

Initialize rw_timeout

(cherry picked from commit b8827d8)
  • Loading branch information...
1 parent fc261a7 commit f8de2da74cee561f17b453b7955a4695db8b8429 Tim Mensch committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mongo_connection.cpp
View
2 mongo_connection.cpp
@@ -36,7 +36,7 @@ static int connection_new(lua_State *L) {
try {
bool auto_reconnect;
- double rw_timeout;
+ double rw_timeout=0;
if (lua_type(L,1) == LUA_TTABLE) {
// extract arguments from table
lua_getfield(L, 1, "auto_reconnect");

0 comments on commit f8de2da

Please sign in to comment.