summaryrefslogtreecommitdiff
path: root/debian/patches/0004-trans-mtab-fix-initialization.patch
blob: 08aa29f225dc3f3a7b9e957ad1cbdfcb43e4b3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 4a5f9f683e5446309a077f31d1bb8d8b77415ee2 Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Fri, 23 May 2014 09:54:10 +0200
Subject: [PATCH 04/20] trans/mtab: fix initialization

* trans/mtab.c (main): Fix initialization of mtab in one-shot mode.
---
 trans/mtab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trans/mtab.c b/trans/mtab.c
index 8c9f8d3..df03b1d 100644
--- a/trans/mtab.c
+++ b/trans/mtab.c
@@ -255,7 +255,7 @@ main (int argc, char *argv[])
   else
     {
       /* One-shot mode.	 */
-      struct mtab mtab = { NULL, 0, 0 };
+      struct mtab mtab = { .lock = PTHREAD_MUTEX_INITIALIZER };
       err = mtab_populate (&mtab, target_path, insecure);
       if (err)
 	error (5, err, "%s", target_path);
-- 
2.0.0.rc2