c274395
commit 7b9226c5da3a81fb758bee70aafe05bb64d37464
c274395
Author: Andrew Borodin <aborodin@vmail.ru>
c274395
Date:   Sun Feb 28 18:19:52 2010 +0300
c274395
c274395
    Ticket #2068: fixed segfault in panelization of file find result.
c274395
    
c274395
    Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
c274395
c274395
diff --git a/src/find.c b/src/find.c
c274395
index dc38e5f..883cb07 100644
c274395
--- a/src/find.c
c274395
+++ b/src/find.c
c274395
@@ -1255,7 +1255,7 @@ find_file (const char *start_dir, const char *pattern, const char *content,
c274395
 	    const char *lc_filename = NULL;
c274395
 	    WLEntry *le = (WLEntry *) entry->data;
c274395
 
c274395
-	    if ((le->text == NULL) || (entry->data == NULL))
c274395
+	    if ((le->text == NULL) || (le->data == NULL))
c274395
 		continue;
c274395
 
c274395
 	    if (content_pattern != NULL)