Merge pull request #1973 from peter15914/fix-abspath-retval

Check NULL from abspath()
This commit is contained in:
Arun Prakash Jana 2024-12-19 22:18:04 +05:30 committed by GitHub
commit 5522292014
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8759,6 +8759,11 @@ int main(int argc, char *argv[])
close(fd);
selpath = abspath(optarg, NULL, NULL);
if (!selpath) {
xerror();
return EXIT_FAILURE;
}
unlink(selpath);
}
break;