diff options
Diffstat (limited to 'src/auth.c')
| -rw-r--r-- | src/auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -75,6 +75,7 @@ static void add_user_internal(const char *name, const char *pass, int authlevel) /* doesn't need to be malloc'd */ struct userdata_t userdata; + memset(&userdata, 0, sizeof(userdata)); strncpy(userdata.username, name, sizeof(userdata.username)); memcpy(userdata.passhash, hexhash, sizeof(userdata.passhash)); |