From d88f1757efb11cbbd989f1158a162e65cc21b5a8 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 12 Feb 2002 19:18:39 +0000 Subject: [PATCH] Fix pointer initialization bug --- servers/slapd/modify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 5c67446443..62a6a6da30 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -117,9 +117,11 @@ do_modify( } mod = (Modifications *) ch_malloc( sizeof(Modifications) ); + mod->sml_op = mop; mod->sml_type = tmp.sml_type; mod->sml_bvalues = tmp.sml_bvalues; mod->sml_desc = NULL; + mod->sml_next =NULL; *modtail = mod; switch( mop ) { @@ -166,7 +168,6 @@ do_modify( } } - mod->sml_op = mop; modtail = &mod->sml_next; } *modtail = NULL; -- 2.39.5