~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.cc

  • Committer: Jay Pipes
  • Date: 2009-11-19 18:58:35 UTC
  • mto: (1223.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: jpipes@serialcoder-20091119185835-o59wyfjiet3keutu
Fixes some valgrind warnings regarding conditionals depending on unintialized variables.  Use initializer lists properly, dang it. :) Also, removed the new_Cached_item() function's use_result_field, as this was only used for views and was producing a valgrind warning unnecessarily.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3007
3007
  {
3008
3008
    for (; group ; group=group->next)
3009
3009
    {
3010
 
      Cached_item *tmp=new_Cached_item(join->session, *group->item, false);
 
3010
      Cached_item *tmp= new_Cached_item(join->session, *group->item);
3011
3011
      if (!tmp || join->group_fields.push_front(tmp))
3012
3012
        return true;
3013
3013
    }