From fd2144a1f95ac6358db0289add1a0cefa7fb2c5a Mon Sep 17 00:00:00 2001 From: fedir Date: Mon, 5 May 2025 18:59:57 +0200 Subject: [PATCH] Added a filename check --- src/ui-socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui-socket.c b/src/ui-socket.c index ef72430..59e54d1 100644 --- a/src/ui-socket.c +++ b/src/ui-socket.c @@ -225,7 +225,6 @@ int interactive_access(const char *filename, struct process_info proc_info, // the user might specify a different file in the dialogue, so we need to // check if it is valid - /* while (source_access(response.filename, F_OK)) { // if it is invalid, just ask again. fprintf(stderr, "Filename returned by zenty wasn't correct: %s\n", @@ -233,7 +232,7 @@ int interactive_access(const char *filename, struct process_info proc_info, free(response.filename); response = ask_access(filename, proc_info); } - */ + free(real_path); real_path = real_filename(response.filename);