aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-23 10:41:56 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-23 10:41:56 +0100
commit65759b475cb7719d115ad9532f5efcd60ee9cdf2 (patch)
tree30e1106d8dbcf21dd91060811d9b21eb64d5dc2f /src
parentwhoops (diff)
downloadalgorithms-and-data-structures-65759b475cb7719d115ad9532f5efcd60ee9cdf2.tar.gz
algorithms-and-data-structures-65759b475cb7719d115ad9532f5efcd60ee9cdf2.tar.bz2
algorithms-and-data-structures-65759b475cb7719d115ad9532f5efcd60ee9cdf2.tar.xz
missed to initialise the sentinel node
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/datastructures/linkedlists/sentinel-template1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datastructures/linkedlists/sentinel-template b/src/datastructures/linkedlists/sentinel-template
index 43bebab..9485226 100644
--- a/src/datastructures/linkedlists/sentinel-template
+++ b/src/datastructures/linkedlists/sentinel-template
@@ -65,6 +65,7 @@
* Initialiser
*/
{
+ this.edge = new Node(null);
this.edge.next = this.edge;
£>if (( with_prev )); then
this.edge.previous = this.edge;