~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/default.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-01 18:51:28 UTC
  • mto: (2213.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2214.
  • Revision ID: olafvdspek@gmail.com-20110301185128-mkb43nzl619doz5x
Use push_back

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
  {
293
293
    if (!(tmp= (char *)ctx->alloc->alloc_root(strlen(option) + 1)))
294
294
      return 1;
295
 
    if (insert_dynamic(ctx->args, (unsigned char*) &tmp))
296
 
      return 1;
 
295
    ctx->args->push_back(&tmp);
297
296
    strcpy(tmp, option);
298
297
  }
299
298