Permalink
Browse files

minor: fix warning

  • Loading branch information...
1 parent b4de4eb commit 30425c2c8a9a364e797950b118aa68f4bff92294 @banker banker committed Jun 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/replica_set_test.c
View
@@ -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 );

0 comments on commit 30425c2

Please sign in to comment.