diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-16 17:49:55 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-16 17:52:20 +0300 |
commit | e0fe7199971728dfa4e84cd3c63e17dde48d0c7a (patch) | |
tree | ac405b123ec88e3613f2808e7c68edbe693c5a79 /source | |
parent | 65aebd0c11f9fd820b4dda34c7053ed7a138bcb1 (diff) |
Fix BLI_path test of BLI_path_frame_strip.
Ensure that returned string buffer is always properly initialized with
NULL char...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 1 |
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; } |