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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-04-16 17:49:55 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-04-16 17:52:20 +0300
commite0fe7199971728dfa4e84cd3c63e17dde48d0c7a (patch)
treeac405b123ec88e3613f2808e7c68edbe693c5a79
parent65aebd0c11f9fd820b4dda34c7053ed7a138bcb1 (diff)
Fix BLI_path test of BLI_path_frame_strip.
Ensure that returned string buffer is always properly initialized with NULL char...
-rw-r--r--source/blender/blenlib/intern/path_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index dc5ee984c25..33cd844f851 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -881,6 +881,7 @@ bool BLI_path_frame_get(char *path, int *r_frame, int *r_numdigits)
void BLI_path_frame_strip(char *path, char *r_ext)
{
+ *r_ext = '\0';
if (*path == '\0') {
return;
}