Fix maxavrocheck build failure on Ubuntu Trusty
The return value of realpath should be checked even if it is pointless.
This commit is contained in:
parent
4716f5b48f
commit
5b14e28fc8
@ -173,8 +173,11 @@ int main(int argc, char** argv)
|
||||
for (int i = optind; i < argc; i++)
|
||||
{
|
||||
char pathbuf[PATH_MAX + 1];
|
||||
snprintf(pathbuf, sizeof(pathbuf), "%s", argv[i]);
|
||||
realpath(argv[i], pathbuf);
|
||||
|
||||
if (!realpath(argv[i], pathbuf))
|
||||
{
|
||||
snprintf(pathbuf, sizeof(pathbuf), "%s", argv[i]);
|
||||
}
|
||||
|
||||
if (check_file(pathbuf))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user