Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor: fix warning

  • Loading branch information...
commit 30425c2c8a9a364e797950b118aa68f4bff92294 1 parent b4de4eb
@banker banker authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/replica_set_test.c
View
4 test/replica_set_test.c
@@ -44,7 +44,7 @@ int test_connect( const char *set_name ) {
int test_reconnect( const char *set_name ) {
mongo conn[1];
- int res;
+ int res = 0;
int e = 0;
bson b;
@@ -57,7 +57,7 @@ int test_reconnect( const char *set_name ) {
if( ( mongo_replset_connect( conn ) != MONGO_OK ) ) {
mongo_destroy( conn );
- return res;
+ return MONGO_ERROR;
} else {
fprintf( stderr, "Disconnect now:\n" );
sleep( 10 );
Please sign in to comment.
Something went wrong with that request. Please try again.