qssb_enable_policy: check for empty str instead of NULL ptr

This was missed in 0a851790b8
This commit is contained in:
Albert S. 2020-09-26 16:09:43 +02:00
부모 dbdb35db37
커밋 763c65c3fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제

2
qssb.h
파일 보기

@ -489,7 +489,7 @@ int qssb_enable_policy(struct qssb_policy *policy)
if(policy->path_policies != NULL)
{
if(policy->chroot_target_path == NULL)
if(*policy->chroot_target_path == '\0')
{
char random_str[17];
if(random_string(random_str, sizeof(random_str)) == 16)