Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-04-25 01:14:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-25 01:14:05 +0400
commit265d76a533d324a54eb22cf05b1732ab95aece14 (patch)
tree1e14073c40e6cc10529e6befaca907b0c8e7ea2b /source/blender/blenloader
parent4bd3163ea6399311d33f1c6c280d0d23c3a4e370 (diff)
fix for crash reading console history.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 8b0861252fe..71c09917c46 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5169,7 +5169,7 @@ static void direct_link_screen(FileData *fd, bScreen *sc)
}
else if(sl->spacetype==SPACE_CONSOLE) {
SpaceConsole *sconsole= (SpaceConsole *)sl;
- ConsoleLine *cl, *clnext;
+ ConsoleLine *cl, *cl_next;
link_list(fd, &sconsole->scrollback);
link_list(fd, &sconsole->history);
@@ -5180,9 +5180,10 @@ static void direct_link_screen(FileData *fd, bScreen *sc)
/*comma expressions, (e.g. expr1, expr2, expr3) evalutate each expression,
from left to right. the right-most expression sets the result of the comma
expression as a whole*/
- for(cl= sconsole->history.first; cl && (clnext=cl->next); cl= clnext) {
+ for(cl= sconsole->history.first; cl; cl= cl_next) {
+ cl_next= cl->next;
cl->line= newdataadr(fd, cl->line);
- if (!cl->line) {
+ if (cl->line == NULL) {
BLI_remlink(&sconsole->history, cl);
MEM_freeN(cl);
}