From a6679f9c7e2a4fd90cc5c8c547e1a61e09c55ef2 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Thu, 2 Jul 2020 22:42:21 +0200 Subject: [PATCH] Remove variable scope by one level --- src/nsmd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nsmd.cpp b/src/nsmd.cpp index 96e6654..efa8a42 100644 --- a/src/nsmd.cpp +++ b/src/nsmd.cpp @@ -1645,10 +1645,9 @@ static lo_address list_response_address; int list_file ( const char *fpath, const struct stat *sb, int tflag ) { - char *s; - if ( tflag == FTW_F ) { + char *s; s = strdup( fpath ); if ( ! strcmp( "session.nsm", basename( s ) ) ) {