gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, master, updated. gawk-4.1.0-4857-gf094ce6a


From: Arnold Robbins
Subject: [SCM] gawk branch, master, updated. gawk-4.1.0-4857-gf094ce6a
Date: Thu, 11 Aug 2022 14:48:33 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  f094ce6a53b9daac0b78c3db623de6f6b141ad16 (commit)
      from  9ecd7884103e292277e2ba3038369334d347879c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=f094ce6a53b9daac0b78c3db623de6f6b141ad16

commit f094ce6a53b9daac0b78c3db623de6f6b141ad16
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu Aug 11 21:48:14 2022 +0300

    Small bug fix in main.c.

diff --git a/ChangeLog b/ChangeLog
index 213245a4..b9ba6a33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-11         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * main.c (get_pma_version): Check strchr() return value for
+       close parenthesis.  Ooops.
+
 2022-08-10         Arnold D. Robbins     <arnold@skeeve.com>
 
        * symbol.c (init_the_tables): New function.
diff --git a/main.c b/main.c
index 71a66e63..8c6a66ff 100644
--- a/main.c
+++ b/main.c
@@ -1373,9 +1373,9 @@ nostalgia()
        abort();
 }
 
+#ifdef USE_PERSISTENT_MALLOC
 /* get_pma_version --- get a usable version string out of PMA */
 
-#ifdef USE_PERSISTENT_MALLOC
 const char *
 get_pma_version()
 {
@@ -1396,7 +1396,10 @@ get_pma_version()
 
        open++;
        close = strchr(open, ')');
+       if (close == NULL)
+               return pma_version;     // sigh, again.
 
+       // copy over the short name
        for (out = buf, in = open; in < close;)
                *out++ = *in++;
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 5 +++++
 main.c    | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]