Module: kamailio
Branch: master
Commit: 5e91f429ef137625668dd41de9d227a2fcd1461a
URL:
https://github.com/kamailio/kamailio/commit/5e91f429ef137625668dd41de9d227a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-01-01T11:58:33+01:00
core: use STR_STATIC_INIT() for defining core vars
---
Modified: src/core/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5e91f429ef137625668dd41de9d227a…
Patch:
https://github.com/kamailio/kamailio/commit/5e91f429ef137625668dd41de9d227a…
---
diff --git a/src/core/pv_core.c b/src/core/pv_core.c
index 54fc6e6123..2b3132ccb4 100644
--- a/src/core/pv_core.c
+++ b/src/core/pv_core.c
@@ -141,11 +141,11 @@ static pv_export_t core_pvs[] = {
{ STR_STATIC_INIT("rc"), PVT_OTHER, pv_get_retcode, 0, 0, 0, 0, 0 },
{ STR_STATIC_INIT("retcode"), PVT_OTHER, pv_get_retcode, 0, 0, 0, 0, 0 },
{ STR_STATIC_INIT("env"), PVT_OTHER, pv_get_env, 0,
- pv_parse_env_name, 0, 0, 0},
- {{"def", (sizeof("def")-1)}, PVT_OTHER, pv_get_def, 0,
- pv_parse_def_name, 0, 0, 0},
- {{"defn", (sizeof("defn")-1)}, PVT_OTHER, pv_get_defn, 0,
- pv_parse_defn_name, 0, 0, 0},
+ pv_parse_env_name, 0, 0, 0 },
+ { STR_STATIC_INIT("def"), PVT_OTHER, pv_get_def, 0,
+ pv_parse_def_name, 0, 0, 0 },
+ { STR_STATIC_INIT("defn"), PVT_OTHER, pv_get_defn, 0,
+ pv_parse_defn_name, 0, 0, 0 },
{ {0, 0}, 0, 0, 0, 0, 0, 0, 0 }
};