summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/genrand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/genrand.c b/lib/util/genrand.c
index c51f9384b8..5b8456547a 100644
--- a/lib/util/genrand.c
+++ b/lib/util/genrand.c
@@ -294,7 +294,7 @@ _PUBLIC_ uint32_t generate_random(void)
_PUBLIC_ bool check_password_quality(const char *s)
{
int has_digit=0, has_capital=0, has_lower=0, has_special=0, has_high=0;
- char* reals = s;
+ const char* reals = s;
while (*s) {
if (isdigit((unsigned char)*s)) {
has_digit |= 1;