gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2402-gc04fec


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2402-gc04fec1
Date: Mon, 16 Jan 2017 18:57:06 +0000 (UTC)

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  c04fec1b8c96e2b11d451fc45cfd1cf38420310f (commit)
      from  0c3c1a2aa8318e0035f90fc3a5d30de470d949b3 (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=c04fec1b8c96e2b11d451fc45cfd1cf38420310f

commit c04fec1b8c96e2b11d451fc45cfd1cf38420310f
Author: Arnold D. Robbins <address@hidden>
Date:   Mon Jan 16 20:56:55 2017 +0200

    Sync dfa.

diff --git a/support/ChangeLog b/support/ChangeLog
index 67b0787..e3af142 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-16         Arnold D. Robbins     <address@hidden>
+
+       * dfa.c: Sync with GNULIB.
+
 2017-01-10         Arnold D. Robbins     <address@hidden>
 
        * dfa.c: Sync with GNULIB.
diff --git a/support/dfa.c b/support/dfa.c
index 1abc6d1..eb8e213 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -2046,8 +2046,9 @@ copy (position_set const *src, position_set *dst)
       dst->elems = xpalloc (NULL, &dst->alloc, src->nelem - dst->alloc, -1,
                             sizeof *dst->elems);
     }
-  memcpy (dst->elems, src->elems, src->nelem * sizeof *dst->elems);
   dst->nelem = src->nelem;
+  if (src->nelem != 0)
+    memcpy (dst->elems, src->elems, src->nelem * sizeof *dst->elems);
 }
 
 static void

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

Summary of changes:
 support/ChangeLog |    4 ++++
 support/dfa.c     |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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