From e0fe7199971728dfa4e84cd3c63e17dde48d0c7a Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 16 Apr 2019 16:49:55 +0200 Subject: Fix BLI_path test of BLI_path_frame_strip. Ensure that returned string buffer is always properly initialized with NULL char... --- source/blender/blenlib/intern/path_util.c | 1 + 1 file changed, 1 insertion(+) (limited to '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; } -- cgit v1.2.3