diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-16 15:42:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-16 15:42:07 +0400 |
commit | 925c5010e8d5a132d4f64622602fddef1344211e (patch) | |
tree | 00bfae89ec41d86e79f9a1e5f2b791e71fc042a4 /source/blender/editors/space_outliner/outliner_select.c | |
parent | 7430701600ec1bd5538af2f816c36e8187f0beeb (diff) |
fix for checking char arrays against NULL, instead check their first character. also remove some dead code (return directly after return).
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_select.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 3f06db22f59..9720d981e85 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -704,7 +704,7 @@ static int tree_element_active_sequence_dup(Scene *scene, TreeElement *te, TreeS // XXX select_single_seq(seq, 1); p = ed->seqbasep->first; while (p) { - if ((!p->strip) || (!p->strip->stripdata) || (!p->strip->stripdata->name)) { + if ((!p->strip) || (!p->strip->stripdata) || (p->strip->stripdata->name[0] == '\0')) { p = p->next; continue; } |