From aae44e3d326042eaa1ee9b649a0f74f7aea537ee Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 23 Jan 2020 21:15:51 +0100 Subject: [PATCH] channellist.cpp: fix possible compiler warnings -Waddress-of-packed-member Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/2f646be1daee7d28f749c2495c64bba3c901ab0e Author: Thilo Graf Date: 2020-01-23 (Thu, 23 Jan 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 94ce09858..cdbb81980 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1729,7 +1729,8 @@ void CChannelList::paintDetails(int index) if (!CurrentNext.next_name.empty()) { char buf[128] = {0}; char cFrom[50] = {0}; // UTF-8 - struct tm *pStartZeit = localtime (& CurrentNext.next_zeit.startzeit); + time_t next_start_time = CurrentNext.next_zeit.startzeit; + struct tm *pStartZeit = localtime (&next_start_time); snprintf(cFrom, sizeof(cFrom), "%s %02d:%02d",g_Locale->getText(LOCALE_WORD_FROM),pStartZeit->tm_hour, pStartZeit->tm_min ); snprintf(buf, sizeof(buf), "%s", CurrentNext.next_name.c_str()); int from_len = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getRenderWidth(cFrom);