diff options
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 65e8c151e8d..f39797c980c 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1832,6 +1832,8 @@ void BLI_path_slash_native(char *path) int BLI_path_cmp_normalized(const char *p1, const char *p2) { + BLI_assert_msg(!BLI_path_is_rel(p1) && !BLI_path_is_rel(p2), "Paths arguments must be absolute"); + /* Normalize the paths so we can compare them. */ char norm_p1[FILE_MAX]; char norm_p2[FILE_MAX]; |