~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleadmin.cc

  • Committer: Brian Aker
  • Date: 2008-12-09 17:33:02 UTC
  • mfrom: (656.1.54 devel)
  • Revision ID: brian@tangent.org-20081209173302-aptngvc7efxnatnt
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    if (argument)
119
119
    {
120
120
      char *start=argument;
121
 
      free(opt_password);
122
 
      opt_password= my_strdup(argument,MYF(MY_FAE));
 
121
      if (opt_password)
 
122
        free(opt_password);
 
123
 
 
124
      opt_password= strdup(argument);
 
125
      if (opt_password == NULL)
 
126
      {
 
127
        fprintf(stderr, _("Memory allocation error while copying password. "
 
128
                          "Aborting.\n"));
 
129
        exit(ENOMEM);
 
130
      }
123
131
      while (*argument) *argument++= 'x';   /* Destroy argument */
124
132
      if (*start)
125
133
        start[1]=0; /* Cut length of argument */