Ticket #1794: Segfault in treeview

Testase:
 * rm -f ~/.mc/Tree
 * run mc
 * F9 -> Command -> Directory tree
 * Press F2
 * Go to '/lib' item
 * Press F2
 * exit from mc
 * run mc again
 * F9 -> Command -> Directory tree
 * press HOME key

Fix issue:
changed forgotten variable name.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-11-05 13:24:14 +02:00
parent 80a9540c7a
commit e071af460f

View File

@ -220,7 +220,7 @@ tree_store_load_from(char *name)
lc_name = decode(buffer + 2);
len = strlen(lc_name);
if (name[0] != PATH_SEP) {
if (lc_name[0] != PATH_SEP) {
/* Clear-text decompression */
char *s = strtok(lc_name, " ");