snmp_hostres(3): fix a typo in sanity checks in handle_chunk()

PR:		204253
Submitted by:	David Binderman <dcb314@hotmail.com>
MFC after:	5 days
This commit is contained in:
avos 2019-02-18 03:23:10 +00:00
parent a16f5d44f5
commit 2085d70f7d

View File

@ -312,7 +312,7 @@ handle_chunk(int32_t ds_index, const char *chunk_name, off_t chunk_size)
assert(chunk_name != NULL);
assert(chunk_name[0] != '\0');
if (chunk_name == NULL || chunk_name == '\0')
if (chunk_name == NULL || chunk_name[0] == '\0')
return;
HRDBG("ANALYZE chunk %s", chunk_name);