Skip to content

Instantly share code, notes, and snippets.

@aabmass
Last active August 29, 2015 14:03
Show Gist options
  • Save aabmass/2ca5568d409d4cf61b98 to your computer and use it in GitHub Desktop.
Save aabmass/2ca5568d409d4cf61b98 to your computer and use it in GitHub Desktop.
--- a/src/timezone-systemd.cpp 2014-06-30 15:38:53.397571301 -0400
+++ b/src/timezone-systemd-nullcheck.cpp 2014-06-30 15:40:35.128794407 -0400
@@ -63,6 +63,12 @@
SystemdTimezone::set_timezone()
{
const gchar * tz_new = timedate1_get_timezone(m_timedate);
+
+ if (tz_new == nullptr)
+ {
+ return; //quick fix
+ }
+
timezone.set(tz_new);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment