summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trans/mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/mtab.c b/trans/mtab.c
index 8c9f8d3b..df03b1d3 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);