mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
Fix coverity defects: CID 147629
CID 147629: Type:Dereference before null check Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov Signed-off-by: <cao.xuewen cao.xuewen@zte.com.cn> Closes #5376
This commit is contained in:
parent
70df4c21c0
commit
acc6d0e223
@ -68,7 +68,8 @@ uu_dprintf_create(const char *name, uu_dprintf_severity_t severity,
|
||||
{
|
||||
uu_dprintf_t *D;
|
||||
|
||||
if (uu_check_name(name, UU_NAME_DOMAIN) == -1) {
|
||||
if (name != NULL &&
|
||||
uu_check_name(name, UU_NAME_DOMAIN) == -1) {
|
||||
uu_set_error(UU_ERROR_INVALID_ARGUMENT);
|
||||
return (NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user