[Bf-blender-cvs] [e0fe7199971] master: Fix BLI_path test of BLI_path_frame_strip.

Bastien Montagne noreply at git.blender.org
Tue Apr 16 16:52:28 CEST 2019


Commit: e0fe7199971728dfa4e84cd3c63e17dde48d0c7a
Author: Bastien Montagne
Date:   Tue Apr 16 16:49:55 2019 +0200
Branches: master
https://developer.blender.org/rBe0fe7199971728dfa4e84cd3c63e17dde48d0c7a

Fix BLI_path test of BLI_path_frame_strip.

Ensure that returned string buffer is always properly initialized with
NULL char...

===================================================================

M	source/blender/blenlib/intern/path_util.c

===================================================================

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;
 	}



More information about the Bf-blender-cvs mailing list