]> Sergey Matveev's repositories - nnn.git/commitdiff
Move debug print after return value check
authorlostd <lostd@2f30.org>
Wed, 8 Oct 2014 15:37:55 +0000 (18:37 +0300)
committerlostd <lostd@2f30.org>
Wed, 8 Oct 2014 15:37:55 +0000 (18:37 +0300)
noice.c

diff --git a/noice.c b/noice.c
index 07f2f78dc9931b504f349d591974029b4cc813cb..e61e82016e0a349e93b8d6bcb16642fa53ca8e0c 100644 (file)
--- 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);