From 16694ed408a533fcf275db8f92a5d0c7c0cbd854 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 24 Mar 2019 16:09:46 +1100 Subject: Cleanup: redundant use of string formatting functions --- source/blender/makesrna/intern/rna_boid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/makesrna/intern/rna_boid.c') diff --git a/source/blender/makesrna/intern/rna_boid.c b/source/blender/makesrna/intern/rna_boid.c index 9906fa49dcb..27e4ee639c5 100644 --- a/source/blender/makesrna/intern/rna_boid.c +++ b/source/blender/makesrna/intern/rna_boid.c @@ -207,8 +207,9 @@ static char *rna_BoidSettings_path(PointerRNA *ptr) if (particle_id_check(ptr)) { ParticleSettings *part = (ParticleSettings *)ptr->id.data; - if (part->boids == boids) - return BLI_sprintfN("boids"); + if (part->boids == boids) { + return BLI_strdup("boids"); + } } return NULL; } -- cgit v1.2.3