~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/option.cc

  • Committer: Eric Day
  • Date: 2010-04-23 21:37:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1519.
  • Revision ID: eday@oddments.org-20100423213729-fifcmuhiqg9iffdg
Changed option parsing to search for first '=', not last, since some option values can contain '='.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
            }
196
196
          }
197
197
          opt_str= check_struct_option(cur_arg, key_name);
198
 
          optend= strrchr(opt_str, '=');
 
198
          optend= strchr(opt_str, '=');
199
199
          if (optend != NULL)
200
200
          {
201
201
            length= (uint32_t) (optend - opt_str);