summaryrefslogtreecommitdiff
path: root/src/common/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging.c')
-rw-r--r--src/common/logging.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/logging.c b/src/common/logging.c
index aedd1ae2d8c..3cf119090a5 100644
--- a/src/common/logging.c
+++ b/src/common/logging.c
@@ -120,8 +120,9 @@ pg_logging_init(const char *argv0)
if (colors)
{
char *token;
+ char *cp = colors;
- while ((token = strsep(&colors, ":")))
+ while ((token = strsep(&cp, ":")))
{
char *e = strchr(token, '=');