~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/simple_multi.c

  • Committer: Monty Taylor
  • Author(s): Stewart Smith
  • Date: 2010-11-08 07:41:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1931.
  • Revision ID: stewart@flamingspork.com-20101108074145-5xh3w5yxom2zk3cj
fix alloc in simple_multi.c from stack usage fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  drizzle_row_t row;
28
28
  int x;
29
29
 
30
 
  con= (drizzle_con_st)malloc(sizeof(drizzle_con_st) * SIMPLE_MULTI_COUNT);
31
 
  result= (drizzle_result_st)malloc(sizeof(drizzle_result_st) * SIMPLE_MULTI_COUNT);
32
 
  ql= (drizzle_query_st)malloc(sizeof(drizzle_query_st) * SIMPLE_MULTI_COUNT);
 
30
  con= (drizzle_con_st*)malloc(sizeof(drizzle_con_st) * SIMPLE_MULTI_COUNT);
 
31
  result= (drizzle_result_st*)malloc(sizeof(drizzle_result_st) * SIMPLE_MULTI_COUNT);
 
32
  ql= (drizzle_query_st*)malloc(sizeof(drizzle_query_st) * SIMPLE_MULTI_COUNT);
33
33
 
34
34
  if (drizzle_create(&drizzle) == NULL)
35
35
  {