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:
@ -173,8 +173,11 @@ int main(int argc, char** argv)
|
|||||||
for (int i = optind; i < argc; i++)
|
for (int i = optind; i < argc; i++)
|
||||||
{
|
{
|
||||||
char pathbuf[PATH_MAX + 1];
|
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))
|
if (check_file(pathbuf))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user