The function xapian_available() is overly complex, and uses an uninitialized static variable to determine whether or not Xapian is available. By initializing the static, we can simplify the code to be much more readable.

I also add a little more information to the function comment.

Patch attached.

CommentFileSizeAuthor
xapian.module.patch833 bytesjeremy

Comments

singularo’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.