noice.c | 3 +-- diff --git a/noice.c b/noice.c index 4f48b2f3a0735bb8471ebedbdbeca0427cbfaff7..897bcb97b6c73a7ddfa593aa32e4b3db090b0c50 100644 --- a/noice.c +++ b/noice.c @@ -601,7 +601,6 @@ if (n == 0) goto nochange; name = dents[cur].name; - DPRINTF_S(name); /* Get path info */ @@ -611,6 +610,7 @@ printwarn(); goto nochange; } DPRINTF_U(sb.st_mode); + switch (sb.st_mode & S_IFMT) { case S_IFDIR: free(path); @@ -624,7 +624,6 @@ SLIST_INSERT_HEAD(&histhead, hist, entry); cur = 0; goto out; case S_IFREG: - /* Open with */ bin = openwith(name); if (bin == NULL) { printmsg("No association");