From ca1bf5c78d45050a0473b6f70f8d0518f216e7a8 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 30 Jan 2022 14:52:23 +0100 Subject: [PATCH] [formhist] silly workaround for C++ compiler --- src/formhist/formhist.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/formhist/formhist.c b/src/formhist/formhist.c index 5de8144d8..7773edccf 100644 --- a/src/formhist/formhist.c +++ b/src/formhist/formhist.c @@ -162,10 +162,12 @@ load_formhist_from_file(void) name = type; if (*name == '*') { + static char password[] = "password"; name++; - type = "password"; + type = password; } else { - type = "text"; + static char text[] = "text"; + type = text; } goto cont;