diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-01-23 10:41:56 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-01-23 10:41:56 +0100 |
commit | 65759b475cb7719d115ad9532f5efcd60ee9cdf2 (patch) | |
tree | 30e1106d8dbcf21dd91060811d9b21eb64d5dc2f /src/datastructures | |
parent | whoops (diff) | |
download | algorithms-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-template | 1 |
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; |