Commits

Peter Hosey committed e7ea87d

Initialize more variables, fixing some warnings. Thanks to Sparks for this patch.

  • Participants
  • Parent commits 68dc351

Comments (0)

Files changed (1)

File ISO8601DateFormatter.m

 	NSUInteger
 		//Date
 		year,
-		month_or_week,
-		day,
+		month_or_week = 0U,
+		day = 0U,
 		//Time
 		hour = 0U;
 	NSTimeInterval
 	const unsigned char *ch = (const unsigned char *)[string UTF8String];
 
 	NSRange range = { 0U, 0U };
-	const unsigned char *start_of_date;
+	const unsigned char *start_of_date = NULL;
 	if (strict && isspace(*ch)) {
 		range.location = NSNotFound;
 		isValidDate = NO;