GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit b1cd3378 authored by Philip Withnall's avatar Philip Withnall Committed by Philip Withnall

gdatetime: Remove an unnecessary NULL pointer check

datetime->tz can never be NULL, so this pointer check is unnecessary and
confusing, and messes up static analysis.
parent 404c2d24
......@@ -2561,10 +2561,7 @@ g_date_time_format_locale (GDateTime *datetime,
case 'z':
gint64 offset;
if (datetime->tz != NULL)
offset = g_date_time_get_utc_offset (datetime) / USEC_PER_SECOND;
offset = 0;
offset = g_date_time_get_utc_offset (datetime) / USEC_PER_SECOND;
if (!format_z (outstr, (int) offset, colons))
return FALSE;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment