From 6adb331ad6ddae30fefe1451a93cafef6dd5c27f Mon Sep 17 00:00:00 2001 From: Andy Ragusa Date: Thu, 28 Mar 2024 13:36:49 -0700 Subject: [PATCH] Addressed CID 432800 --- libclamav/scanners.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/scanners.c b/libclamav/scanners.c index 45871b8cde..ce76365d99 100644 --- a/libclamav/scanners.c +++ b/libclamav/scanners.c @@ -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); }