diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-10-24 11:25:04 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-10-24 11:25:58 +0300 |
commit | 0b749d57ee88863702b13cb5a746ed04410511b7 (patch) | |
tree | d6ff7a8b5681a4458e34443273a9c82253bea624 /source/blender/editors/screen | |
parent | 89a3b178534c042f97f18f5ecaac3456733c77d4 (diff) |
Fix unlikely uninitialized pointer usage.
Reported by Coverity.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index a6b6ccd5a66..860a865466a 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -4197,7 +4197,7 @@ static int space_context_cycle_poll(bContext *C) /** * Helper to get the correct RNA pointer/property pair for changing - * the display context of active space type in \sa. + * the display context of active space type in \a sa. */ static void context_cycle_prop_get( bScreen *screen, const ScrArea *sa, @@ -4214,6 +4214,9 @@ static void context_cycle_prop_get( RNA_pointer_create(NULL, &RNA_UserPreferences, &U, r_ptr); propname = "active_section"; break; + default: + BLI_assert(0); + propname = ""; } *r_prop = RNA_struct_find_property(r_ptr, propname); |