From d7eafc9e857c09ab5c0d60b187d2481e0afb7031 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 25 Sep 2020 21:52:02 +0200
Subject: [PATCH] Relocate a variable declaration to the function where it is
 used

---
 pcrs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcrs.c b/pcrs.c
index 582f0564..4a9e318d 100644
--- a/pcrs.c
+++ b/pcrs.c
@@ -1106,7 +1106,6 @@ char *pcrs_execute_single_command(const char *subject, const char *pcrs_command,
 }
 
 
-static const char warning[] = "... [too long, truncated]";
 /*********************************************************************
  *
  * Function    :  pcrs_compile_dynamic_command
@@ -1173,6 +1172,7 @@ pcrs_job *pcrs_compile_dynamic_command(char *pcrs_command, const struct pcrs_var
           * with a truncation message and close the pattern
           * properly.
           */
+         static const char warning[] = "... [too long, truncated]";
          const size_t trailer_size = sizeof(warning) + 3; /* 3 for d + "gT" */
          char *trailer_start = buf + sizeof(buf) - trailer_size;
 
-- 
2.49.0