Avoided a possible null pointer dereference (Fabian Keil)

PERMISSION_HANDLING_BRANCH
jpandre 2010-01-21 08:09:13 +00:00
parent b10590b354
commit 42f7d07997
1 changed files with 5 additions and 1 deletions

View File

@ -1622,7 +1622,11 @@ int ntfs_rl_truncate(runlist **arl, const VCN start_vcn)
if (!arl || !*arl) {
errno = EINVAL;
ntfs_log_perror("rl_truncate error: arl: %p *arl: %p", arl, *arl);
if (!arl)
ntfs_log_perror("rl_truncate error: arl: %p", arl);
else
ntfs_log_perror("rl_truncate error:"
" arl: %p *arl: %p", arl, *arl);
return -1;
}