aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2014-03-13 02:57:19 +0000
committerPhillip Lougher <phillip@squashfs.org.uk>2014-03-13 02:57:19 +0000
commitd03597e281be17a97b091708ef8eee8ea0aa782e (patch)
tree1d2cc344bfdc182222153757b4aae58e5b88a322
parent83b0b31fdd23484fe05ff775ac64d7b1013ba094 (diff)
downloadsquashfs-tools-d03597e281be17a97b091708ef8eee8ea0aa782e.tar.gz
mksquashfs: initialise pos_mutex
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r--squashfs-tools/mksquashfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index b038a45..8cd6a17 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -261,7 +261,7 @@ pthread_t reader_thread, writer_thread, main_thread;
pthread_t *deflator_thread, *frag_deflator_thread, *frag_thread;
pthread_t *restore_thread = NULL;
pthread_mutex_t fragment_mutex;
-pthread_mutex_t pos_mutex;
+pthread_mutex_t pos_mutex = PTHREAD_MUTEX_INITIALIZER;
/* user options that control parallelisation */
int processors = -1;