diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-08 12:28:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-08 12:28:42 +0300 |
commit | 346a1d445e08e9fd55727b217c236ba0457d137d (patch) | |
tree | be2c982fce98bcc342be7d30aa0ddcbb9026da17 /source/blender/makesrna/intern/rna_userdef.c | |
parent | 0297274720d7c61ea4ccad0b82456d680965b354 (diff) |
Cleanup: redundant check
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 268a6b97ab0..1e97b1c34be 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -682,12 +682,7 @@ static int rna_UserDef_studiolight_name_length(PointerRNA *ptr) static void rna_UserDef_studiolight_path_get(PointerRNA *ptr, char *value) { StudioLight *sl = (StudioLight *)ptr->data; - if (sl->path) { - BLI_strncpy(value, sl->path, FILE_MAX); - } - else { - value[0] = '\0'; - } + BLI_strncpy(value, sl->path, FILE_MAX); } static int rna_UserDef_studiolight_path_length(PointerRNA *ptr) |