From 0b0869ab44c3622826d183ea8ff12e5f29a1ce49 Mon Sep 17 00:00:00 2001 From: lostd Date: Wed, 8 Oct 2014 18:37:55 +0300 Subject: [PATCH] Move debug print after return value check --- noice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);