Previous patch (revision 1185) for the comments-related segfault was incomplete,...
authorLaurent Monin <geeqie@norz.org>
Thu, 6 Nov 2008 20:01:32 +0000 (20:01 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 6 Nov 2008 20:01:32 +0000 (20:01 +0000)
commita5760993339ed221d1377724beb2485c28237945
treec0da4c975cb45388ce45f7c942d3ae4125ba9034
parentebf81820c51edd5ab948021d75e79f9d933937fe
Previous patch (revision 1185) for the comments-related segfault was incomplete, and as such, it broke keywords in files whose metadata had keywords but no comments.

This patch fixes that (and still fixes the case where one searches on
comments and hits a file with keywords but no comments).  Lastly, I would
imagine that there exists a failure mode where one searches for a keyword and
hits a file with a comment but no keyword, and I imagine this patch should fix
that case as well.

Patch by Omari Stephens (aka xsdg).
src/bar_info.c