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:
parent
65aebd0c11
commit
e0fe719997
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user