Move debug print after return value check

This commit is contained in:
lostd 2014-10-08 18:37:55 +03:00
parent 6b51ec4585
commit 0b0869ab44
1 changed files with 1 additions and 1 deletions

View File

@ -353,12 +353,12 @@ nochange:
}
r = fstat(fd, &sb);
close(fd);
DPRINTF_U(sb.st_mode);
if (r == -1) {
printwarn();
free(pathnew);
goto nochange;
}
DPRINTF_U(sb.st_mode);
/* Directory */
if (S_ISDIR(sb.st_mode)) {
free(path);