From 34dc95a08aa69f95b4afca23405c5996cc5d3465 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 19 Sep 2023 19:00:31 +0200 Subject: [PATCH] tests/structdata.c: Avoid name "new" to allow reuse from C++ --- expat/tests/structdata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/expat/tests/structdata.c b/expat/tests/structdata.c index 6917eb50..9e15ddb0 100644 --- a/expat/tests/structdata.c +++ b/expat/tests/structdata.c @@ -83,13 +83,13 @@ StructData_AddItem(StructData *storage, const XML_Char *s, int data0, int data1, assert(storage != NULL); assert(s != NULL); if (storage->count == storage->max_count) { - StructDataEntry *new; + StructDataEntry *new_entries; storage->max_count += STRUCT_EXTENSION_COUNT; - new = realloc(storage->entries, - storage->max_count * sizeof(StructDataEntry)); - assert(new != NULL); - storage->entries = new; + new_entries = realloc(storage->entries, + storage->max_count * sizeof(StructDataEntry)); + assert(new_entries != NULL); + storage->entries = new_entries; } entry = &storage->entries[storage->count];