aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-02 17:04:19 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-02 17:04:19 +0000
commita4b8073f048a0d5847ebf1f89f48c9b201aef124 (patch)
treebd445d297d3835b457b6273281d0ad38ab43984f /src
parentfdf7e508f70bbf24adeb1beba2fc5ab825217f92 (diff)
downloadlibbu++-a4b8073f048a0d5847ebf1f89f48c9b201aef124.tar.gz
libbu++-a4b8073f048a0d5847ebf1f89f48c9b201aef124.tar.bz2
libbu++-a4b8073f048a0d5847ebf1f89f48c9b201aef124.tar.xz
libbu++-a4b8073f048a0d5847ebf1f89f48c9b201aef124.zip
Minor bug deleting last element of linked lists.
Diffstat (limited to '')
-rw-r--r--src/list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index 3979b63..9b95983 100644
--- a/src/list.h
+++ b/src/list.h
@@ -171,6 +171,8 @@ namespace Bu
171 pPrev->pNext = pTmp; 171 pPrev->pNext = pTmp;
172 if( pTmp != NULL ) 172 if( pTmp != NULL )
173 pTmp->pPrev = pPrev; 173 pTmp->pPrev = pPrev;
174 else
175 pLast = pPrev;
174 nSize--; 176 nSize--;
175 } 177 }
176 } 178 }