回复: lib/fts.c: return when malloc failed

2023-02-27 Thread ChuanGang Jiang
)) { +free_dir(sp); +__set_errno (ENOMEM); +return (NULL); +} goto check_for_dir; } -- 2.36.1 Best Regards ChuanGang Jiang -邮件原件- 发件人

lib/fts.c: return when malloc failed

2023-02-26 Thread ChuanGang Jiang
fts_load(sp, p); -setup_dir(sp); +if (! setup_dir(sp)) { +free_dir(sp); +return (NULL); +} goto check_for_dir; } -- 2.36.1 Best Regards ChuanGang Jiang

[PATCH]maint: fix misspellings in comments

2023-02-21 Thread ChuanGang Jiang
*lib/tparm.c: Fix typos in comments --- ChangeLog | 2 +- lib/tparm.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index c1ca610548..2a17679cf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -101710,7 +101710,7 @@ (mbstok_r): Assume

[PATCH] hamt: Use __GNUC_MINOR__, not __GNUC_MINOR

2023-02-13 Thread ChuanGang Jiang
* lib/hamt.h:Use __GNUC_MINOR__, not __GNUC_MINOR. --- lib/hamt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hamt.h b/lib/hamt.h index 6263b405bf..36142418d3 100644 --- a/lib/hamt.h +++ b/lib/hamt.h @@ -60,7 +60,7 @@ _GL_INLINE_HEADER_BEGIN We can define it only

[PATCH] fix typos like "the the" and "a a" in comment

2023-02-10 Thread ChuanGang Jiang
*lib/c32is-impl.h: s/the the/the/ *lib/getopt-pfx-core.h: s/a a/a/ *lib/term-style-control.h: s/the the/the/ *lib/textstyle.in.h: s/the the/the/ --- lib/c32is-impl.h | 2 +- lib/getopt-pfx-core.h| 2 +- lib/term-style-control.h | 2 +- lib/textstyle.in.h | 2 +- 4 files