error in own last commit
authorCampbell Barton <ideasman42@gmail.com>
Sat, 11 Jul 2015 15:43:32 +0000 (01:43 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 11 Jul 2015 16:31:46 +0000 (02:31 +1000)
source/blender/imbuf/intern/openexr/openexr_api.cpp

index 3ba8d8e98c12f6f9f02b373df3e2ea702b5bdeaf..ff6f55a777b561f70e771d51c44c307c4a61db08 100644 (file)
@@ -766,8 +766,10 @@ static void imb_exr_get_views(MultiPartInputFile& file, StringVector& views)
 static void imb_exr_insert_view_name(char *name_full, const char *passname, const char *viewname)
 {
        BLI_assert(!ELEM(name_full, passname, viewname));
+
        if (viewname == NULL || viewname[0] == '\0') {
                BLI_strncpy(name_full, passname, sizeof(((ExrChannel *)NULL)->name));
+               return;
        }
 
        const char delims[] = {'.', '\0'};