Re: [PATCH] useless-if-before-free: Check for nullptr.

2024-06-17 Thread Collin Funk
Hi Bruno, Bruno Haible wrote: > The point is to produce a reasonable 'useless-if-before-free --version' > output. > > This is where this thread started. [1] Ah, I see. I figured the typical 'git log' or 'sed ... ChangeLog' would be used like gnulib-tool.sh, all-modules, etc. But those are only

Re: [PATCH] useless-if-before-free: Check for nullptr.

2024-06-17 Thread Bruno Haible
Collin Funk asked: > > -my $VERSION = '2022-01-27 18:51'; # UTC > > +my $VERSION = '2024-06-17 03:44'; # UTC > > What is the point of time stamping the file? The point is to produce a reasonable 'useless-if-before-free --version' output. This is where this thread started. [1] Bruno [1] https:/

Re: [PATCH] useless-if-before-free: Check for nullptr.

2024-06-16 Thread Collin Funk
Collin Funk wrote: > -my $VERSION = '2022-01-27 18:51'; # UTC > +my $VERSION = '2024-06-17 03:44'; # UTC What is the point of time stamping the file? Reminds me of the old SCCSID and RCSID stuff (which I have never used). I mention it because in my emacs init file: (setq enable-local-variabl

[PATCH] useless-if-before-free: Check for nullptr.

2024-06-16 Thread Collin Funk
* build-aux/useless-if-before-free (is_NULL): Add nullptr to the condition. (foo): Add nullptr to the regular expressions. --- ChangeLog| 7 +++ build-aux/useless-if-before-free | 8 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/Ch