mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
Introduced STRING_DIR_SEP for better portability
This commit is contained in:
committed by
Witold Filipczyk
parent
f9a452ece7
commit
d1e5e0b7d2
@@ -9,6 +9,7 @@
|
||||
#include "config/home.h"
|
||||
#include "ecmascript/spidermonkey/util.h"
|
||||
#include "main/module.h"
|
||||
#include "osdep/osdep.h"
|
||||
#include "scripting/scripting.h"
|
||||
#include "scripting/smjs/core.h"
|
||||
#include "scripting/smjs/elinks_object.h"
|
||||
@@ -114,7 +115,7 @@ smjs_load_hooks(void)
|
||||
if (elinks_home) {
|
||||
path = straconcat(elinks_home, SMJS_HOOKS_FILENAME, NULL);
|
||||
} else {
|
||||
path = stracpy(CONFDIR "/" SMJS_HOOKS_FILENAME);
|
||||
path = stracpy(CONFDIR STRING_DIR_SEP SMJS_HOOKS_FILENAME);
|
||||
}
|
||||
|
||||
if (file_exists(path))
|
||||
|
Reference in New Issue
Block a user