summaryrefslogtreecommitdiff
path: root/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20140321-dvbdate.patch
blob: 87d9a62ad9f5f332feef7035744e72feb3c13b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/util/dvbdate/dvbdate.c
+++ b/util/dvbdate/dvbdate.c
@@ -310,7 +310,7 @@
 int set_time(time_t * new_time)
 {
 	struct timespec s = {0};
-	s.tv_sec = new_time;
+	s.tv_sec = *new_time;
 
 	if (clock_settime(CLOCK_REALTIME, &s)) {
 		perror("Unable to set time");