]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: config_connection_request() - Don't store unused import_environment
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Fri, 15 Aug 2025 12:47:28 +0000 (14:47 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 29 Aug 2025 12:45:28 +0000 (12:45 +0000)
src/config/config-connection.c

index d9e0a1320708f235e8f480cf9ddf66fe45d65366..658d00f990a6be1194bd410d1802eeca11b5bc0e 100644 (file)
@@ -71,8 +71,6 @@ static int config_global_reload(const char **error_r)
 static int config_connection_request(struct config_connection *conn,
                                     const char *const *args)
 {
-       const char *import_environment;
-
        while (*args != NULL) {
                if (strcmp(*args, "reload") == 0) {
                        const char *error;
@@ -91,7 +89,7 @@ static int config_connection_request(struct config_connection *conn,
        if (global_config_fd == -1) {
                int fd = config_dump_full(global_config,
                                          CONFIG_DUMP_FULL_DEST_RUNDIR,
-                                         0, &import_environment);
+                                         0, NULL);
                if (fd == -1) {
                        o_stream_nsend_str(conn->output, "-Failed\n");
                        return 0;