1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

Merge with git+ssh://pasky/srv/git/elinks.git

This commit is contained in:
Jonas Fonseca 2006-01-02 21:05:18 +01:00 committed by Jonas Fonseca
commit c3c4dd12df

View File

@ -14,6 +14,7 @@
#include "scripting/smjs/elinks_object.h"
#include "scripting/smjs/global_object.h"
#include "scripting/smjs/smjs.h"
#include "util/file.h"
#include "util/string.h"
@ -116,7 +117,8 @@ smjs_load_hooks(void)
path = stracpy(CONFDIR "/" SMJS_HOOKS_FILENAME);
}
smjs_do_file(path);
if (file_exists(path))
smjs_do_file(path);
mem_free(path);
}