From: lostd Date: Wed, 8 Oct 2014 15:37:55 +0000 (+0300) Subject: Move debug print after return value check X-Git-Tag: v1.0~92^2~245 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0b0869ab44c3622826d183ea8ff12e5f29a1ce49;p=nnn.git Move debug print after return value check --- diff --git a/noice.c b/noice.c index 07f2f78d..e61e8201 100644 --- a/noice.c +++ b/noice.c @@ -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);