From 9fd4a8582abb90eaa061187408b52a8e73832c53 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 26 Sep 2007 20:26:03 +0000 Subject: [PATCH] coverity - a->a_nvals may be NULL --- servers/slapd/value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/value.c b/servers/slapd/value.c index 64d7298dde..0aecdb3293 100644 --- a/servers/slapd/value.c +++ b/servers/slapd/value.c @@ -737,7 +737,7 @@ ordered_value_add( } if ( anum ) { AC_MEMCPY( new, a->a_vals, anum * sizeof(struct berval)); - if ( nnew ) + if ( nnew && a->a_nvals ) AC_MEMCPY( nnew, a->a_nvals, anum * sizeof(struct berval)); } -- 2.39.5