summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-13 17:56:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-13 17:56:17 +0200
commit564403b4b15947dd787147972fe71f565ca7388a (patch)
tree430d4f6ea252493ce0b333ab1f6562e62c27e01b /tools.c
parentd4893ad1fed2e2b157c404d610db779138c4c461 (diff)
downloadvdr-564403b4b15947dd787147972fe71f565ca7388a.tar.gz
vdr-564403b4b15947dd787147972fe71f565ca7388a.tar.bz2
Added 'insert' capabilities to cList (fix)
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools.c b/tools.c
index 453a788c..440ddd19 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.65 2002/05/13 16:32:12 kls Exp $
+ * $Id: tools.c 1.66 2002/05/13 17:56:17 kls Exp $
*/
#include "tools.h"
@@ -788,9 +788,8 @@ void cListBase::Ins(cListObject *Object, cListObject *Before)
if (objects)
objects->Insert(Object);
else
- objects = Object;
- if (!lastObject)
lastObject = Object;
+ objects = Object;
}
}