From 4e9c974b7ca8bf6c06bf284b87ba6d5ce345b4b8 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 18 May 2021 09:36:19 +0200 Subject: [PATCH] get_shadow_line: Move const string into function scope --- get_shadow_line.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/get_shadow_line.c b/get_shadow_line.c index 56d2428..18b8f82 100644 --- a/get_shadow_line.c +++ b/get_shadow_line.c @@ -11,9 +11,8 @@ #define TIMEOUT 5000 -static char conf_filename[] = "/etc/mxshadow.conf"; - static int read_config(struct sockaddr_in *addr) { + static const char conf_filename[] = "/etc/mxshadow.conf"; FILE *f _cleanup_(free_file) = NULL; char *line _cleanup_(free_string) = NULL; size_t n = 0;