~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/my_time.c

  • Committer: Monty Taylor
  • Date: 2008-07-11 15:49:04 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 134.
  • Revision ID: monty@inaugust.com-20080711154904-nrtkef3bo1jvzrds
A crapton more warning cleanups (I turned on more warnings) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
161
161
                uint flags, int *was_cut)
162
162
{
163
 
  uint field_length, year_length, digits, i, number_of_fields;
 
163
  uint field_length, year_length=4, digits, i, number_of_fields;
164
164
  uint date[MAX_DATE_PARTS], date_len[MAX_DATE_PARTS];
165
165
  uint add_hours= 0, start_loop;
166
166
  ulong not_zero_date, allow_space;
167
167
  my_bool is_internal_format;
168
 
  const char *pos, *last_field_pos;
 
168
  const char *pos, *last_field_pos=NULL;
169
169
  const char *end=str+length;
170
170
  const uchar *format_position;
171
171
  my_bool found_delimitier= 0, found_space= 0;