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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-12 13:09:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-12 13:09:22 +0300
commit059f7413c4cf2fed8a4189ade4a609f9758f6022 (patch)
tree1f40b971a70508854b323c4cdbaea12c4b59abb9 /source/blender
parent379bb0706caa62bfa96b2219c4493402fa8a836c (diff)
Cleanup: redundant NULL checks, simplify tool fallback arg checks
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_workspace_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace_api.c b/source/blender/makesrna/intern/rna_workspace_api.c
index f244a674e57..5cc55bfad8a 100644
--- a/source/blender/makesrna/intern/rna_workspace_api.c
+++ b/source/blender/makesrna/intern/rna_workspace_api.c
@@ -63,8 +63,8 @@ static void rna_WorkSpaceTool_setup(ID *id,
STRNCPY(tref_rt.op, op_idname);
tref_rt.index = index;
- STRNCPY(tref_rt.idname_fallback, idname_fallback ? idname_fallback : NULL);
- STRNCPY(tref_rt.keymap_fallback, keymap_fallback ? keymap_fallback : NULL);
+ STRNCPY(tref_rt.idname_fallback, idname_fallback);
+ STRNCPY(tref_rt.keymap_fallback, keymap_fallback);
WM_toolsystem_ref_set_from_runtime(C, (WorkSpace *)id, tref, &tref_rt, idname);
}