--- OLD/libmysqld/lib_sql.cc.orig 2005-09-26 23:22:53.539609003 +0200 +++ NEW/libmysqld/lib_sql.cc 2005-09-26 23:23:22.795863378 +0200 @@ -423,9 +423,9 @@ acl_error= 0; #ifndef NO_EMBEDDED_ACCESS_CHECKS - if (!(acl_error= acl_init((THD *)0, opt_noacl)) && + if (!(acl_error= acl_init(opt_noacl)) && !opt_noacl) - (void) grant_init((THD *)0); + (void) grant_init(); #endif if (acl_error || my_tz_init((THD *)0, default_tz_name, opt_bootstrap)) {