Commit 6d70f9fc authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

import more consistent sanity assertion

parent b8076656
......@@ -208,7 +208,9 @@ attr_merge(
* of nvals and the value of (*a)->a_nvals must be consistent
*/
assert( ( nvals == NULL && (*a)->a_nvals == (*a)->a_vals )
|| ( nvals != NULL && (*a)->a_nvals != (*a)->a_vals ) );
|| ( nvals != NULL && (
( (*a)->a_vals == NULL && (*a)->a_nvals == NULL )
|| ( (*a)->a_nvals != (*a)->a_vals ) ) ) );
}
rc = value_add( &(*a)->a_vals, vals );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment