Skip to content

Commit

Permalink
Addressed CID 432800
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa authored and micahsnyder committed Apr 15, 2024
1 parent 09c559a commit 6adb331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclamav/scanners.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static cl_error_t cli_scanrar_file(const char *filepath, int desc, cli_ctx *ctx)
/*
* Extract the file...
*/
if (NULL != metadata.filename) {
if (0 != metadata.filename[0]) {
(void)cli_basename(metadata.filename, strlen(metadata.filename), &filename_base);
}

Expand Down

0 comments on commit 6adb331

Please sign in to comment.