From 3b9eb09276eba4542f13175a16e6d9a528cd5439 Mon Sep 17 00:00:00 2001 From: "konstantin@mysql.com" <> Date: Fri, 28 Nov 2003 01:57:05 +0300 Subject: [PATCH] no need to zero-initialize mysql->master->{rpl_pivot, options.rpl_parse, options.rpl_probe} as they are zero-initialized in spawn_init() --- libmysql/libmysql.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index d5fe2cddc48..0c9c68f4505 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -2289,9 +2289,6 @@ STDCALL mysql_set_master(MYSQL* mysql, const char* host, mysql_close(mysql->master); if (!(mysql->master = spawn_init(mysql, host, port, user, passwd))) return 1; - mysql->master->rpl_pivot = 0; - mysql->master->options.rpl_parse = 0; - mysql->master->options.rpl_probe = 0; return 0; }