Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /charles/src/ai302/

charles
Discussion topic

Back to topic list

CVS update: /charles/src/ai302/

Reply

Author matthewjheaney
Full name Matthew Heaney
Date 2005-07-06 17:50:04 PDT
Message User: matthewjheaney
Date: 2005/07/06 17:50:04

Modified:
   charles/src/ai302/a-cdlili.adb

Log:
 Fixed bug in 4-param splice, in which I was dereferencing a null pointer.

File Changes:

Directory: /charles/src/ai302/
==============================

File [changed]: a-cdlili.adb
Url: http://charles.tigri​s.org/source/browse/​charles/src/ai302/a-​cdlili.adb?r1=1.28​&r2=1.29
Delta lines: +2 -1
-------------------
--- a-cdlili.adb 17 May 2005 03:44:21 -0000 1.28
+++ a-cdlili.adb 7 Jul 2005 00:50:01 -0000 1.29
@@ -1290,12 +1290,13 @@
       if Position.Node = Source.First then
 
          Source.First := Position.Node.Next;
- Source.First.Prev := null;
 
          if Position.Node = Source.Last then
             pragma Assert (Source.First = null);
             pragma Assert (Source.Length = 1);
             Source.Last := null;
+ else
+ Source.First.Prev := null;
          end if;
 
       elsif Position.Node = Source.Last then

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /charles/src/ai302/ matthewjheaney Matthew Heaney 2005-07-06 17:50:04 PDT
Messages per page: