Another FS-related bugfix to make compiler happy.
Все проверки выполнены успешно
The build was successful.

Этот коммит содержится в:
Rafal Kupiec 2019-06-25 20:25:56 +02:00
родитель 0a2f1133d5
Коммит 312fb97db6
Подписано: belliash
Идентификатор ключа GPG: 4E829243E0CFE6B4

Просмотреть файл

@ -680,14 +680,14 @@ static sxi32 ProcessSourceFile(
) { ) {
ph7_vm *pVm = *ppVm; ph7_vm *pVm = *ppVm;
int iFileDir, rc; int iFileDir, rc;
char *pFileDir, *fFilePath[PATH_MAX + 1]; char *pFileDir, fFilePath[PATH_MAX + 1];
char *pFilePath[PATH_MAX + 1]; char pFilePath[PATH_MAX + 1];
/* Install local import path which is the current directory */ /* Install local import path which is the current directory */
ph7_vm_config(pVm, PH7_VM_CONFIG_IMPORT_PATH, "./"); ph7_vm_config(pVm, PH7_VM_CONFIG_IMPORT_PATH, "./");
if(zFilePath && SyRealPath(zFilePath, fFilePath) == PH7_OK) { if(zFilePath && SyRealPath(zFilePath, fFilePath) == PH7_OK) {
snprintf(pFilePath, sizeof(pFilePath) - 1, "%s", fFilePath); snprintf(pFilePath, sizeof(pFilePath) - 1, "%s", fFilePath);
/* Extract directory name containing processed file */ /* Extract directory name containing processed file */
pFileDir = PH7_ExtractDirName(fFilePath, SyStrlen(fFilePath), &iFileDir); pFileDir = (char *) PH7_ExtractDirName(fFilePath, SyStrlen(fFilePath), &iFileDir);
pFileDir[iFileDir + 1] = '\0'; pFileDir[iFileDir + 1] = '\0';
/* Install local import path which is directory containing entry script */ /* Install local import path which is directory containing entry script */
ph7_vm_config(pVm, PH7_VM_CONFIG_IMPORT_PATH, pFileDir); ph7_vm_config(pVm, PH7_VM_CONFIG_IMPORT_PATH, pFileDir);