diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2014-03-13 02:57:19 +0000 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2014-03-13 02:57:19 +0000 |
commit | d03597e281be17a97b091708ef8eee8ea0aa782e (patch) | |
tree | 1d2cc344bfdc182222153757b4aae58e5b88a322 | |
parent | 83b0b31fdd23484fe05ff775ac64d7b1013ba094 (diff) | |
download | squashfs-tools-d03597e281be17a97b091708ef8eee8ea0aa782e.tar.gz |
mksquashfs: initialise pos_mutex
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r-- | squashfs-tools/mksquashfs.c | 2 |
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; |