Skip to content

Commit

Permalink
fixup! shell: output: refactor output plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
grondo committed Dec 24, 2024
1 parent 11ef063 commit 696350d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell/output/filehash.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static struct file_entry *file_entry_open (const char *path,

void file_entry_close (struct file_entry *fp)
{
if (--fp->refcount == 0)
if (fp && --fp->refcount == 0)
zhashx_delete (fp->fh->files, fp->path);
}

Expand Down

0 comments on commit 696350d

Please sign in to comment.