mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Move debug print after return value check
This commit is contained in:
parent
6b51ec4585
commit
0b0869ab44
2
noice.c
2
noice.c
|
@ -353,12 +353,12 @@ nochange:
|
||||||
}
|
}
|
||||||
r = fstat(fd, &sb);
|
r = fstat(fd, &sb);
|
||||||
close(fd);
|
close(fd);
|
||||||
DPRINTF_U(sb.st_mode);
|
|
||||||
if (r == -1) {
|
if (r == -1) {
|
||||||
printwarn();
|
printwarn();
|
||||||
free(pathnew);
|
free(pathnew);
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
|
DPRINTF_U(sb.st_mode);
|
||||||
/* Directory */
|
/* Directory */
|
||||||
if (S_ISDIR(sb.st_mode)) {
|
if (S_ISDIR(sb.st_mode)) {
|
||||||
free(path);
|
free(path);
|
||||||
|
|
Loading…
Reference in a new issue