Skip to content

Commit

Permalink
Per feedback, checking for NULL is redundant
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Eric Fagan <kithrup@mac.com>
  • Loading branch information
kithrup committed Mar 4, 2022
1 parent b3cb008 commit d52e389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/zfs/zfs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4455,7 +4455,8 @@ zfs_do_send_exclude(zfs_handle_t *zhp, void *context)
const char *name;

name = fullname + strlen(poolname);
if (name && *name == '/')
/* Skip past the /, if it's there */
if (*name == '/')
name++;

if (exclude == NULL || name == NULL || *name == '\0')
Expand Down

0 comments on commit d52e389

Please sign in to comment.