[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] trans/mtab: fix initialization
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 4/7] trans/mtab: fix initialization |
Date: |
Mon, 26 May 2014 13:42:28 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 26 May 2014 13:19:16 +0200, a écrit :
> * trans/mtab.c (main): Fix initialization of mtab in one-shot mode.
Ack.
> ---
> 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
>
--
Samuel
RK > Some "PC speakers" are actually buzzers in some cases rather than
RK > real loudspeakers which give a squark rather than a beep.
DW They're not _that_ bad. Even on most recent hardware, mp3s played
DW through the PC speaker are relatively recognisable :)
-+- lkml -+-
- [PATCH 1/7] term: fix memory leak, Justus Winter, 2014/05/26
- [PATCH 2/7] libpager: drop unused fields from struct pager, Justus Winter, 2014/05/26
- [PATCH 5/7] libdiskfs: fix node leak in the name cache, Justus Winter, 2014/05/26
- [PATCH 4/7] trans/mtab: fix initialization, Justus Winter, 2014/05/26
- Re: [PATCH 4/7] trans/mtab: fix initialization,
Samuel Thibault <=
- [PATCH 6/7] libihash: do not use an integer hash function by default, Justus Winter, 2014/05/26
- [PATCH 3/7] ext2fs: fix diskfs_pager_users, Justus Winter, 2014/05/26
- [PATCH 7/7] libtrivfs: lock-less reference counting for trivfs_peropen objects, Justus Winter, 2014/05/26
- Re: [PATCH 1/7] term: fix memory leak, Samuel Thibault, 2014/05/26