* [PATCH] erofs-utils: fix an uninitialized variable
@ 2019-05-23 4:57 Lianjun Huang
2019-05-23 5:37 ` Gao Xiang
2019-05-24 8:32 ` Chao Yu
0 siblings, 2 replies; 3+ messages in thread
From: Lianjun Huang @ 2019-05-23 4:57 UTC (permalink / raw)
This fixes a building failure caused by using a variable before initialization.
Signed-off-by: Lianjun Huang <huanglianjun at vivo.com>
---
mkfs/erofs_cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkfs/erofs_cache.c b/mkfs/erofs_cache.c
index 5bb293b..0d7acf7 100644
--- a/mkfs/erofs_cache.c
+++ b/mkfs/erofs_cache.c
@@ -142,7 +142,7 @@ int erofs_flush_all_blocks(void)
char *erofs_blk_buf;
char *pbuf;
int count;
- int ret;
+ int ret = 0;
erofs_blk_buf = malloc(EROFS_BLKSIZE);
if (!erofs_blk_buf)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] erofs-utils: fix an uninitialized variable
2019-05-23 4:57 [PATCH] erofs-utils: fix an uninitialized variable Lianjun Huang
@ 2019-05-23 5:37 ` Gao Xiang
2019-05-24 8:32 ` Chao Yu
1 sibling, 0 replies; 3+ messages in thread
From: Gao Xiang @ 2019-05-23 5:37 UTC (permalink / raw)
Hi Lianjun,
On 2019/5/23 12:57, Lianjun Huang wrote:
> This fixes a building failure caused by using a variable before initialization.
>
> Signed-off-by: Lianjun Huang <huanglianjun at vivo.com>
Thanks for your patch. I will apply this patch to the current mkfs-dev branch this evening.
p.s. could you have some time to take a look at erofs-mkfs and do some test/fixes on the new code,
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/log/?h=experimental
I plan to send new mkfs code to mailing list for review, and switch new erofs-mkfs from experimental
to dev branch, and mark the current mkfs obsoleted since the new mkfs is more cleaner, powerful
(with designs to support the upcoming erofs features) and seems already stable...
Thanks,
Gao Xiang
> ---
> mkfs/erofs_cache.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mkfs/erofs_cache.c b/mkfs/erofs_cache.c
> index 5bb293b..0d7acf7 100644
> --- a/mkfs/erofs_cache.c
> +++ b/mkfs/erofs_cache.c
> @@ -142,7 +142,7 @@ int erofs_flush_all_blocks(void)
> char *erofs_blk_buf;
> char *pbuf;
> int count;
> - int ret;
> + int ret = 0;
>
> erofs_blk_buf = malloc(EROFS_BLKSIZE);
> if (!erofs_blk_buf)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] erofs-utils: fix an uninitialized variable
2019-05-23 4:57 [PATCH] erofs-utils: fix an uninitialized variable Lianjun Huang
2019-05-23 5:37 ` Gao Xiang
@ 2019-05-24 8:32 ` Chao Yu
1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2019-05-24 8:32 UTC (permalink / raw)
On 2019/5/23 12:57, Lianjun Huang wrote:
> This fixes a building failure caused by using a variable before initialization.
>
> Signed-off-by: Lianjun Huang <huanglianjun at vivo.com>
Reviewed-by: Chao Yu <yuchao0 at huawei.com>
Thanks,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-24 8:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 4:57 [PATCH] erofs-utils: fix an uninitialized variable Lianjun Huang
2019-05-23 5:37 ` Gao Xiang
2019-05-24 8:32 ` Chao Yu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.