|
From: Dan M. <da...@us...> - 2006-12-13 22:43:01
|
Module Name: pcb Committed By: danmc Date: Wed Dec 13 22:42:56 UTC 2006 Modified Files: pcb/src: buffer.c mymem.c undo.c Log Message: Avoid some null pointer dereferences. Also make sure UndoList and RemoveList are initialized at startup to avoid any strange behavior there. This fixes a bug reported on geda-user where starting pcb with an empty board and then doing 'load layout to buffer' and pasting and then doing it again causes a segfault. Thanks to Peter Clifton for pointing this out. To generate a diff of this commit: cvs rdiff -r1.35 -r1.36 pcb/src/buffer.c cvs rdiff -r1.24 -r1.25 pcb/src/mymem.c pcb/src/undo.c To view the diffs online visit: http://pcb.cvs.sourceforge.net/pcb/pcb/src/mymem.c?r1=1.24&r2=1.25 http://pcb.cvs.sourceforge.net/pcb/pcb/src/undo.c?r1=1.24&r2=1.25 http://pcb.cvs.sourceforge.net/pcb/pcb/src/buffer.c?r1=1.35&r2=1.36 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |