~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
5398
5398
 
5399
5399
  TMPDIR[0]= 0;
5400
5400
 
 
5401
  internal::my_init();
 
5402
 
5401
5403
  po::options_description commandline_options("Options used only in command line");
5402
5404
  commandline_options.add_options()
5403
5405
  ("help,?", "Display this help and exit.")
5588
5590
    }
5589
5591
  }
5590
5592
 
5591
 
  if (vm.count("password"))
 
5593
  if( vm.count("password") )
5592
5594
  {
5593
5595
    if (!opt_password.empty())
5594
5596
      opt_password.erase();
5601
5603
      opt_password= password;
5602
5604
      tty_password= false;
5603
5605
    }
5604
 
    char *start= (char *)password.c_str();
5605
 
    char *temp_pass= (char *)password.c_str();
5606
 
    while (*temp_pass)
5607
 
    {
5608
 
        /* Overwriting password with 'x' */
5609
 
        *temp_pass++= 'x';
5610
 
    }
5611
 
    if (*start)
5612
 
    {
5613
 
      start[1]= 0;
5614
 
    }
5615
5606
  }
5616
5607
  else
5617
5608
  {