Fix BLI_path test of BLI_path_frame_strip.

Ensure that returned string buffer is always properly initialized with
NULL char...
This commit is contained in:
Bastien Montagne 2019-04-16 16:49:55 +02:00
parent 65aebd0c11
commit e0fe719997
1 changed files with 1 additions and 0 deletions

View File

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