diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-13 18:16:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-13 18:16:59 +0400 |
commit | 1c15beb6b225826c0a0d83d4df58a0bac7ce0ed5 (patch) | |
tree | f6a783323a6f1d8d2375ff4f7fbe8523dd1141e9 /source/blender/imbuf | |
parent | 0ea078ad03b53d860a427dbf8cad1b7f8002dd7c (diff) |
remove NULL checks on fixed size arrays, also was calling BLI_testextensie_glob every time in the file selector with a blank string.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 235c6a0f37e..baaee8cb553 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -2448,11 +2448,7 @@ void IMB_colormanagement_colorspace_items_add(EnumPropertyItem **items, int *tot item.name = colorspace->name; item.identifier = colorspace->name; item.icon = 0; - - if (colorspace->description) - item.description = colorspace->description; - else - item.description = ""; + item.description = colorspace->description; RNA_enum_item_add(items, totitem, &item); } |