NULL is a pointer, not string terminator

Replace some instances of NULL to '\0', when
referring to string terminator.
This commit is contained in:
Marcin Cieslak
2012-08-13 12:08:03 +02:00
committed by Jon Trulson
parent 3b06b6a6b7
commit 706fccb50e
14 changed files with 32 additions and 32 deletions

View File

@@ -578,7 +578,7 @@ _DtCm_free_entry_content(uint dummy, _DtCm_libentry *entry)
{
_DtCm_remove_from_entry_list(entry->cal, (caddr_t)entry, (caddr_t)entry);
if (entry->e) _DtCm_free_cms_entry(entry->e);
memset((void *)entry, NULL, sizeof(_DtCm_libentry));
memset((void *)entry, 0, sizeof(_DtCm_libentry));
}
/*
@@ -611,7 +611,7 @@ _DtCm_free_libentries(_DtCm_libentry *entry)
nptr = entry->next;
if (entry->e) _DtCm_free_cms_entry(entry->e);
memset((void *)entry, NULL, sizeof(_DtCm_libentry));
memset((void *)entry, 0, sizeof(_DtCm_libentry));
free(entry);