(check_quota): Initialize contentd
to all zeroes before mu_dbm_fetch. This is needed by (at least) Berkeley DBM.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -64,6 +64,7 @@ check_quota (char *name, size_t size, size_t *rest) | ... | @@ -64,6 +64,7 @@ check_quota (char *name, size_t size, size_t *rest) |
64 | return DEFRETVAL; | 64 | return DEFRETVAL; |
65 | 65 | ||
66 | memset (&named, 0, sizeof named); | 66 | memset (&named, 0, sizeof named); |
67 | memset (&contentd, 0, sizeof contentd); | ||
67 | MU_DATUM_PTR (named) = name; | 68 | MU_DATUM_PTR (named) = name; |
68 | MU_DATUM_SIZE (named) = strlen (name); | 69 | MU_DATUM_SIZE (named) = strlen (name); |
69 | rc = mu_dbm_fetch (db, named, &contentd); | 70 | rc = mu_dbm_fetch (db, named, &contentd); | ... | ... |
-
Please register or sign in to post a comment