blob: 2e0eb90fbe9d9c1af86100349fa0b30fd714b30c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ad,v 1.1 2008/01/12 23:54:47 joerg Exp $
--- gpsd.c.orig 2006-06-09 14:34:09.000000000 +0200
+++ gpsd.c
@@ -129,7 +129,7 @@ static int daemonize(void)
}
#if defined(PPS_ENABLE)
-static pthread_mutex_t report_mutex;
+static pthread_mutex_t report_mutex = PTHREAD_MUTEX_INITIALIZER;
#endif /* PPS_ENABLE */
void gpsd_report(int errlevel, const char *fmt, ... )
|