~jaypipes/drizzle/item-class-file-reorg

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2008-07-29 07:47:38 UTC
  • mfrom: (212.6.1 bzero-memset)
  • Revision ID: brian@tangent.org-20080729074738-lfzim6htapm42f2o
MergeĀ fromĀ Mats

Show diffs side-by-side

added added

removed removed

Lines of Context:
1125
1125
    int ip_sock;
1126
1126
 
1127
1127
    ip_sock= socket(next->ai_family, next->ai_socktype, next->ai_protocol);
 
1128
 
1128
1129
    if (ip_sock == INVALID_SOCKET)
1129
1130
    {
1130
1131
      sql_perror(ER(ER_IPSOCK_ERROR));          /* purecov: tested */
4198
4199
  mysqld_user= mysqld_chroot= opt_init_file= opt_bin_logname = 0;
4199
4200
  errmesg= 0;
4200
4201
  opt_mysql_tmpdir= my_bind_addr_str= NullS;
4201
 
  bzero((uchar*) &mysql_tmpdir_list, sizeof(mysql_tmpdir_list));
4202
 
  bzero((char *) &global_status_var, sizeof(global_status_var));
 
4202
  memset((uchar*) &mysql_tmpdir_list, 0, sizeof(mysql_tmpdir_list));
 
4203
  memset((char *) &global_status_var, 0, sizeof(global_status_var));
4203
4204
  key_map_full.set_all();
4204
4205
 
4205
4206
  /* Character sets */
4524
4525
    {
4525
4526
      struct addrinfo *res_lst, hints;    
4526
4527
 
4527
 
      bzero(&hints, sizeof(struct addrinfo));
 
4528
      memset(&hints, 0, sizeof(struct addrinfo));
4528
4529
      hints.ai_socktype= SOCK_STREAM;
4529
4530
      hints.ai_protocol= IPPROTO_TCP;
4530
4531
 
5000
5001
  add_to_status(&global_status_var, &thd->status_var);
5001
5002
 
5002
5003
  /* Reset thread's status variables */
5003
 
  bzero((uchar*) &thd->status_var, sizeof(thd->status_var));
 
5004
  memset((uchar*) &thd->status_var, 0, sizeof(thd->status_var));
5004
5005
 
5005
5006
  /* Reset some global variables */
5006
5007
  reset_status_vars();