[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Mon, 10 Apr 2023 12:16:44 -0400 (EDT) |
branch: master
commit eba7a7ad8a1d3c5d780c83cead2a02ab627b7933
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Apr 10 15:54:02 2023 +0100
* tp/Texinfo/XS/parsetexi/api.c (build_perl_array):
Remove case checking for a null pointer that we unconditionally
dereferenced afterwards anyway.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/api.c | 2 --
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3a523f0e13..aba178b85a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-10 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/parsetexi/api.c (build_perl_array):
+ Remove case checking for a null pointer that we unconditionally
+ dereferenced afterwards anyway.
+
2023-04-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/xspara.c (xspara_add_text):
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index aa63fb2155..5da001fb38 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -281,8 +281,6 @@ build_perl_array (ELEMENT_LIST *e)
sv = newRV_inc ((SV *) av);
for (i = 0; i < e->number; i++)
{
- if (!e->list[i]) /* For arrays only, allow elements to be undef. */
- av_push (av, newSV (0));
if (!e->list[i]->hv)
{
if (e->list[i]->parent)