diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-23 09:54:10 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-26 13:17:16 +0200 |
commit | 4a5f9f683e5446309a077f31d1bb8d8b77415ee2 (patch) | |
tree | a39f1c5f1b755e8ef92dec8a5e5f944913753b52 /trans/mtab.c | |
parent | 6c15c9174134be48c57a8ac5f2ff09d0ba5f1df8 (diff) |
trans/mtab: fix initialization
* trans/mtab.c (main): Fix initialization of mtab in one-shot mode.
Diffstat (limited to 'trans/mtab.c')
-rw-r--r-- | trans/mtab.c | 2 |
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); |