From f32db8164a7ef867321063d9deeb016306de65d0 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 27 Jul 2009 09:17:20 +0000 Subject: [PATCH] Fixed crash with two logbooks using same subdir SVN revision: 2240 --- src/elogd.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 1a2e434b..98cefea9 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -3785,20 +3785,6 @@ int el_build_index(LOGBOOK * lbs, BOOL rebuild) xfree(lbs->n_el_index); } - /* check if this logbook has same data dir as previous */ - for (i = 0; lb_list[i].name[0] && &lb_list[i] != lbs; i++) - if (strieq(lb_list[i].data_dir, lbs->data_dir)) - break; - - if (strieq(lb_list[i].data_dir, lbs->data_dir) && &lb_list[i] != lbs) { - if (verbose) - eprintf("\n Same index as logbook %s\n", lb_list[i].name); - - lbs->el_index = lb_list[i].el_index; - lbs->n_el_index = lb_list[i].n_el_index; - return EL_SUCCESS; - } - lbs->n_el_index = xmalloc(sizeof(int)); *lbs->n_el_index = 0; lbs->el_index = xmalloc(0);