diff options
Diffstat (limited to 'source/blender/src/editseq.c')
-rw-r--r-- | source/blender/src/editseq.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c index bc453dd5a2e..c3264812c4b 100644 --- a/source/blender/src/editseq.c +++ b/source/blender/src/editseq.c @@ -2893,7 +2893,8 @@ void transform_seq(int mode, int context) TimeMarker *marker; /* looping on sequences, WHILE_SEQ macro allocates memory each time */ - int totseq_index, seq_index; Sequence **seqar; + int totseq_index, seq_index; + Sequence **seqar = 0; if(mode!='g' && mode!='e') return; /* from gesture */ @@ -2904,8 +2905,10 @@ void transform_seq(int mode, int context) /* Build the sequence array once, be sure to free it */ build_seqar( ed->seqbasep, &seqar, &totseq_index ); - for(seq_index=0, seq=seqar[0]; seq_index < totseq_index; seq=seqar[++seq_index]) { - if(seq->flag & SELECT) totstrip++; + if (seqar) { + for(seq_index=0, seq=seqar[0]; seq_index < totseq_index; seq=seqar[++seq_index]) { + if(seq->flag & SELECT) totstrip++; + } } if (sseq->flag & SEQ_MARKER_TRANS) { |