Skip to content

Commit

Permalink
10719 eibnx: NULL pointer errors
Browse files Browse the repository at this point in the history
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Apr 22, 2019
1 parent 11b5d82 commit dd26c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/uts/common/io/ib/clients/eoib/enx_misc.c
Expand Up @@ -616,7 +616,7 @@ eibnx_make_nodename(eibnx_thr_info_t *info, uint16_t gw_portid)
{
char *name;

if (info->ti_ident[0] == NULL)
if (info->ti_ident[0] == '\0')
return (NULL);

name = kmem_zalloc(MAXNAMELEN, KM_SLEEP);
Expand Down

0 comments on commit dd26c2a

Please sign in to comment.