Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-08 12:28:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-08 12:28:42 +0300
commit346a1d445e08e9fd55727b217c236ba0457d137d (patch)
treebe2c982fce98bcc342be7d30aa0ddcbb9026da17 /source
parent0297274720d7c61ea4ccad0b82456d680965b354 (diff)
Cleanup: redundant check
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c7
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)