~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.cc

  • Committer: Monty Taylor
  • Date: 2008-12-09 04:45:44 UTC
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081209044544-va4o2vmn3xuao22y
Added more return value checks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1606
1606
  {
1607
1607
    *(char **)tgt= strdup(*(char **) save);
1608
1608
    free(old);
 
1609
    /*
 
1610
     * There isn't a _really_ good thing to do here until this whole set_var
 
1611
     * mess gets redesigned
 
1612
     */
 
1613
    if (tgt == NULL)
 
1614
      sql_print_error(_("Out of memor."));
 
1615
 
1609
1616
  }
1610
1617
}
1611
1618
 
1869
1876
         if ((*pp= *(char**) (global_system_variables.dynamic_variables_ptr +
1870
1877
                             *(int*)(pi->plugin_var + 1))))
1871
1878
           *pp= strdup(*pp);
 
1879
         if (*pp == NULL)
 
1880
           return NULL;
1872
1881
      }
1873
1882
    }
1874
1883