diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/ai_scanner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index 8b30e8c9f..df989630f 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -424,8 +424,8 @@ static bool IsSameAI(const ContentInfo *ci, bool md5sum, AIFileInfo *info) AIFileChecksumCreator checksum; const char *tar_filename = info->GetTarFile(); - TarList::iterator iter = _tar_list.find(tar_filename); - if (iter != _tar_list.end()) { + TarList::iterator iter; + if (tar_filename != NULL && (iter = _tar_list.find(tar_filename)) != _tar_list.end()) { /* The main script is in a tar file, so find all files that * are in the same tar and add them to the MD5 checksumming. */ TarFileList::iterator tar; |