1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

core: set priority in calls to config_file_new (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-12 07:35:36 +01:00
parent d274eb4be4
commit 9174ec979b
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -2635,7 +2635,7 @@ config_weechat_init_options ()
char section_name[128];
weechat_config_file = config_file_new (
NULL, WEECHAT_CONFIG_NAME, &config_weechat_reload_cb, NULL, NULL);
NULL, WEECHAT_CONFIG_PRIO_NAME, &config_weechat_reload_cb, NULL, NULL);
if (!weechat_config_file)
return 0;
+1
View File
@@ -29,6 +29,7 @@
struct t_gui_buffer;
#define WEECHAT_CONFIG_NAME "weechat"
#define WEECHAT_CONFIG_PRIO_NAME "110000|weechat"
#define TAB_MAX_WIDTH 64
+1 -1
View File
@@ -446,7 +446,7 @@ secure_config_init_options ()
{
struct t_config_section *ptr_section;
secure_config_file = config_file_new (NULL, SECURE_CONFIG_NAME,
secure_config_file = config_file_new (NULL, SECURE_CONFIG_PRIO_NAME,
&secure_config_reload_cb, NULL, NULL);
if (!secure_config_file)
return 0;
+1
View File
@@ -21,6 +21,7 @@
#define WEECHAT_SECURE_CONFIG_H
#define SECURE_CONFIG_NAME "sec"
#define SECURE_CONFIG_PRIO_NAME "120000|sec"
extern struct t_config_file *secure_config_file;
extern struct t_config_section *secure_config_section_pwd;