Re: [PATCH] maint: avoid undefined behavior in qsort call

2015-06-24 Thread Jim Meyering
On Wed, Jun 24, 2015 at 11:15 AM, Pádraig Brady p...@draigbrady.com wrote: GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning: runtime error: null pointer passed as argument 1, which is declared to never be null * src/ptx.c (sort_found_occurs): Avoid the call with no entries. Nice!

[PATCH] build: allow build to complete with -fsanitize=address

2015-06-24 Thread Pádraig Brady
* src/make-prime-list.c (main): When building with the above option, avoid this build stopping error: LeakSanitizer: detected memory leaks --- src/make-prime-list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/make-prime-list.c b/src/make-prime-list.c index b31e1ed..0d5b614 100644

Re: [FR] du option to show .files/.folders

2015-06-24 Thread Stephane Chazelas
2015-06-24 04:13:12 +, Yurii Kolesnykov: Sorry, this command is not that I want, becaus it shows only folders, but no files in current catalog. du -ahd1 See also https://unix.stackexchange.com/a/186230 https://unix.stackexchange.com/a/176173 https://unix.stackexchange.com/a/75795 --

[PATCH] maint: avoid undefined behavior in qsort call

2015-06-24 Thread Pádraig Brady
GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning: runtime error: null pointer passed as argument 1, which is declared to never be null * src/ptx.c (sort_found_occurs): Avoid the call with no entries. --- src/ptx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git