~linuxjedi/drizzle/drizzle-bug-597905

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

  • Committer: Monty Taylor
  • Date: 2010-06-26 03:52:47 UTC
  • mfrom: (1637.1.5 staging)
  • Revision ID: mordred@inaugust.com-20100626035247-i0iq4sd6wqzfisyy
Merged in staging changes: Mark's syslog patch and vijay's program_options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5588
5588
    }
5589
5589
  }
5590
5590
 
5591
 
  if (vm.count("password"))
 
5591
  if( vm.count("password") )
5592
5592
  {
5593
5593
    if (!opt_password.empty())
5594
5594
      opt_password.erase();
5601
5601
      opt_password= password;
5602
5602
      tty_password= false;
5603
5603
    }
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
5604
  }
5616
5605
  else
5617
5606
  {