mc/mc-findfix.patch
Jindrich Novy 2ed07ce7d8 - patches from upstream:
- fix crash in mcedit ran stand-alone (#571570)
- fix segfault when trying to panelize find results (#569823)
2010-03-18 13:30:15 +00:00

22 lines
702 B
Diff

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