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