NULL is a pointer, not string terminator
Replace some instances of NULL to '\0', when referring to string terminator.
This commit is contained in:
committed by
Jon Trulson
parent
3b06b6a6b7
commit
706fccb50e
@@ -164,7 +164,7 @@ _DtCmGrowAttrArray(uint *num_attrs, cms_attribute **attrs, cms_attribute *attr)
|
||||
return (CSA_E_INSUFFICIENT_MEMORY);
|
||||
else {
|
||||
*attrs = newptr;
|
||||
memset((void *)&(*attrs)[*num_attrs+1], NULL,
|
||||
memset((void *)&(*attrs)[*num_attrs+1], 0,
|
||||
sizeof(cms_attribute) * (index - *num_attrs));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user