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
@@ -120,7 +120,7 @@ _DtCm_add_name_to_table(_DtCmNameTable *tbl, int index, char *newname)
|
||||
return (CSA_E_INSUFFICIENT_MEMORY);
|
||||
} else {
|
||||
tbl->names = newptr;
|
||||
memset((void *)&tbl->names[tbl->size+1], NULL,
|
||||
memset((void *)&tbl->names[tbl->size+1], 0,
|
||||
sizeof(char *)*(index - tbl->size));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user