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>2014-05-10 03:27:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-10 03:29:35 +0400
commit78918995a45a3dd54ec075b2f7ae0332a08837d4 (patch)
treed3f342393acf91ec3afdedaa0f80e00150df0298 /source/blender
parentc3a3664e8c7b196091a786251293012002735b91 (diff)
Replace inefficient use of strstr with STRPREFIX macro
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/anim_sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c
index ee524891b9b..6a9c4c851b2 100644
--- a/source/blender/blenkernel/intern/anim_sys.c
+++ b/source/blender/blenkernel/intern/anim_sys.c
@@ -386,10 +386,10 @@ void BKE_relink_animdata(AnimData *adt)
* < basepath: (str) shorter path fragment to look for
* > returns (bool) whether there is a match
*/
-static short animpath_matches_basepath(const char path[], const char basepath[])
+static bool animpath_matches_basepath(const char path[], const char basepath[])
{
/* we need start of path to be basepath */
- return (path && basepath) && (strstr(path, basepath) == path);
+ return (path && basepath) && STRPREFIX(path, basepath);
}
/* Move F-Curves in src action to dst action, setting up all the necessary groups