diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-14 22:48:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-14 22:48:19 +0400 |
commit | f579fe5681873749077b39a67f79ba6f7544d784 (patch) | |
tree | 607ce786d872840f1cb9da861457a09f21dad379 /source/blender/makesrna/intern/rna_rna.c | |
parent | 58cabaa1e32ab52ff35cc996497e6f9a415b3078 (diff) |
fixes for warnings and crashes during doc generation
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index 8dd751cd26a..fbb24f9ada9 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -383,14 +383,13 @@ static void rna_Property_description_get(PointerRNA *ptr, char *value) { PropertyRNA *prop= (PropertyRNA*)ptr->data; rna_idproperty_check(&prop, ptr); - strcpy(value, prop->description); + strcpy(value, prop->description ? prop->description:""); } - static int rna_Property_description_length(PointerRNA *ptr) { PropertyRNA *prop= (PropertyRNA*)ptr->data; rna_idproperty_check(&prop, ptr); - return strlen(prop->description); + return prop->description ? strlen(prop->description) : 0; } static int rna_Property_type_get(PointerRNA *ptr) |