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