summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-02-02 11:17:58 -0200
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-02-02 11:17:58 -0200
commit1a6ab2267fa7455c79536e641aa0137a844500dc (patch)
tree51c9ddd83b57f1dfdedba4ddeb7229805281c93d
parentbe89d30f367f78694a62bab0570a1255b8208833 (diff)
downloadmariadb-git-1a6ab2267fa7455c79536e641aa0137a844500dc.tar.gz
Fix for valgrind warning: check whether pointer was initialized.
-rw-r--r--storage/myisammrg/ha_myisammrg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisammrg/ha_myisammrg.cc b/storage/myisammrg/ha_myisammrg.cc
index e265dac2c82..8af776f5c5e 100644
--- a/storage/myisammrg/ha_myisammrg.cc
+++ b/storage/myisammrg/ha_myisammrg.cc
@@ -380,7 +380,7 @@ static MI_INFO *myisammrg_attach_children_callback(void *callback_param)
my_errno= HA_ERR_WRONG_MRG_TABLE_DEF;
}
DBUG_PRINT("myrg", ("MyISAM handle: 0x%lx my_errno: %d",
- (long) myisam, my_errno));
+ my_errno ? NULL : (long) myisam, my_errno));
err:
DBUG_RETURN(my_errno ? NULL : myisam);