Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Waldo_Embed_V2 elevator_with_queue RaheeNew DS1820 ... more
Revision 4:59b2aa82b517, committed 2013-04-10
- Comitter:
- sam_grove
- Date:
- Wed Apr 10 06:17:21 2013 +0000
- Parent:
- 3:c14e7a918e21
- Child:
- 5:28e11c75b433
- Commit message:
- removed setting _head->next to 0 in the constructor. Was writing to uninitialized (unallocated) memory location
Changed in this revision
| LinkedList.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LinkedList.cpp Mon Apr 08 22:23:25 2013 +0000
+++ b/LinkedList.cpp Wed Apr 10 06:17:21 2013 +0000
@@ -26,9 +26,9 @@
template<class retT>
LinkedList<retT>::LinkedList()
{
- // clear the members
+ // clear the member
_head = 0;
- _head->next = 0;
+// _head->next = 0;
return;
}