fixed warning about bad memset size argument

this should have been sizeof(*value), but it's better to use calloc() here anyway