Closed iwamatsu closed 1 year ago
The get_pages_in_use () return 0 sometime. In this case, 0 divisions run. This adds a check of retuen value to avoid this problem.
Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org
Can you rebase your branch?
I'd prefer to say that the database is empty since that is the logical conclusion of size == 0. I'll fix that up after merging. Thanks for the patch.
The get_pages_in_use () return 0 sometime. In this case, 0 divisions run. This adds a check of retuen value to avoid this problem.
Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org