From: Howard Chu Date: Wed, 26 Sep 2007 20:26:03 +0000 (+0000) Subject: coverity - a->a_nvals may be NULL X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~595 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fd4a8582abb90eaa061187408b52a8e73832c53;p=openldap coverity - a->a_nvals may be NULL --- 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)); }