From 583de56f8ff6d7dce7f91a066d26a84dc14071fc Mon Sep 17 00:00:00 2001 From: Alexander Zhylin Date: Thu, 20 Aug 2026 18:31:39 +0300 Subject: [PATCH] fixes file search --- src/components/client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/client/client.c b/src/components/client/client.c index 9ada2ef..c17de7c 100644 --- a/src/components/client/client.c +++ b/src/components/client/client.c @@ -65,7 +65,7 @@ void process_client_command(char *line, session *sess, server_data_t *s_d) { if (!strcmp(arg_2, "search")) { char *s_type = arg_1; /* since we don't need the contents of arg_1 and arg_2 variables */ - char *s_val = NULL; + char s_val[256]; ret = sscanf(line, "%*s %*s %s %s %u %u", s_type, s_val, &(fl_args.limit), &(fl_args.page));