Page MenuHome

Fix incorrectly skipped string copy in test_env_path
ClosedPublic

Authored by Robert Guetzkow (rjg) on Oct 21 2020, 10:30 PM.

Details

Summary

This patch is supposed to fix T81925. Before the patch, when test_env_path was called with check_is_dir set to false, the path from the environment variable in env would not be copied to path. Since check_is_dir is only supposed to skip the BLI_is_dir(env) check, but not the copying of the path, the BLI_strncpy(path, env, FILE_MAX); is performed before the two checks.

Diff Detail

Repository
rB Blender
Branch
2020-10-21-appdir (branched from master)
Build Status
Buildable 10862
Build 10862: arc lint + arc unit