~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getopt.c

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
636
636
      break;
637
637
    case GET_STR_ALLOC:
638
638
      if ((*((char**) result_pos)))
639
 
        my_free((*(char**) result_pos), MYF(MY_WME | MY_FAE));
 
639
        free((*(char**) result_pos));
640
640
      if (!(*((char**) result_pos)= my_strdup(argument, MYF(MY_WME))))
641
641
        return EXIT_OUT_OF_MEMORY;
642
642
      break;
1013
1013
    */
1014
1014
    if ((char*) (intptr_t) value)
1015
1015
    {
1016
 
      my_free((*(char**) variable), MYF(MY_ALLOW_ZERO_PTR));
 
1016
      free((*(char**) variable));
1017
1017
      *((char**) variable)= my_strdup((char*) (intptr_t) value, MYF(MY_WME));
1018
1018
    }
1019
1019
    break;
1038
1038
{
1039
1039
  switch ((option->var_type & GET_TYPE_MASK)) {
1040
1040
  case GET_STR_ALLOC:
1041
 
    my_free((*(char**) variable), MYF(MY_ALLOW_ZERO_PTR));
 
1041
    free((*(char**) variable));
1042
1042
    *((char**) variable)= NULL;
1043
1043
    break;
1044
1044
  default: /* dummy default to avoid compiler warnings */