Commit ad182705 ad182705baed1cb575a022390ec00805490b32cc by Sergey Poznyakoff

(check_quota): Initialize contentd

  to all zeroes before mu_dbm_fetch. This is needed by
  (at least) Berkeley DBM.
1 parent c99ebb18
...@@ -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);
......