# HG changeset patch # User Timo Sirainen # Date 1139141293 -7200 # Node ID 90638cc0d4e46529858590f418814f6f533b5c24 # Parent f209b3fc77e415dd6c0c443d0204d5e6937f8854 Don't break if keyword_count is for some reason 0 in dbox file. diff -r f209b3fc77e4 -r 90638cc0d4e4 src/lib-storage/index/dbox/dbox-file.c --- a/src/lib-storage/index/dbox/dbox-file.c Sun Feb 05 09:52:42 2006 +0200 +++ b/src/lib-storage/index/dbox/dbox-file.c Sun Feb 05 14:08:13 2006 +0200 @@ -232,7 +232,8 @@ } i_free(file->seeked_keywords); - file->seeked_keywords = i_malloc(file->keyword_count); + file->seeked_keywords = file->keyword_count == 0 ? NULL : + i_malloc(file->keyword_count); return 0; }