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;