Skip to content

Commit 22c5b19

Browse files
authored
stats_over_http: don't show config file error when not specified (#8279)
1 parent a0bc284 commit 22c5b19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/stats_over_http/stats_over_http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ load_config_file(config_holder_t *config_holder)
10051005
fh = TSfopen(config_holder->config_path, "r");
10061006
}
10071007

1008-
if (!fh) {
1008+
if (!fh && config_holder->config_path != NULL) {
10091009
TSError("[%s] Unable to open config: %s. Will use the param as the path, or %s if null\n", PLUGIN_NAME,
10101010
config_holder->config_path, DEFAULT_URL_PATH);
10111011
if (config_holder->config) {

0 commit comments

Comments
 (0)