openldap/backport-ITS-9898-tests-fix-slapd-addel-non-std-syntax.patch

30 lines
879 B
Diff
Raw Normal View History

2022-11-07 12:04:02 +00:00
From 21abafcc9d040b0aa1cf7e47b76abc975e27dc68 Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Tue, 9 Aug 2022 18:11:30 +0100
Subject: [PATCH] ITS#9898 tests: fix slapd-addel non-std syntax
Broken in f5bef58cae5e16d56c48b1efd55249fa7ce54cc6
---
tests/progs/slapd-addel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c
index ca007ce3f..f67c1fbde 100644
--- a/tests/progs/slapd-addel.c
+++ b/tests/progs/slapd-addel.c
@@ -65,9 +65,9 @@ main( int argc, char **argv )
char *filename = NULL, *buf = NULL;
int friendly = 0;
struct LDIFFP *fp;
- LDIFRecord record = {};
+ LDIFRecord record = {0};
struct tester_conn_args *config;
- struct berval bv = {};
+ struct berval bv = {0};
unsigned long lineno = 0;
config = tester_init( "slapd-addel", TESTER_ADDEL );
--
2.33.0