Skip to content

Commit ff6d504

Browse files
committed
python: Constify some local static variables
These somehow got missed in my previous constification patches... Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
1 parent 3621352 commit ff6d504

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/python/nxt_python.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,10 @@ nxt_python_set_target(nxt_task_t *task, nxt_python_target_t *target,
406406
nxt_bool_t is_factory = 0;
407407
nxt_conf_value_t *value;
408408

409-
static nxt_str_t module_str = nxt_string("module");
410-
static nxt_str_t callable_str = nxt_string("callable");
411-
static nxt_str_t prefix_str = nxt_string("prefix");
412-
static nxt_str_t factory_flag_str = nxt_string("factory");
409+
static const nxt_str_t module_str = nxt_string("module");
410+
static const nxt_str_t callable_str = nxt_string("callable");
411+
static const nxt_str_t prefix_str = nxt_string("prefix");
412+
static const nxt_str_t factory_flag_str = nxt_string("factory");
413413

414414
module = obj = NULL;
415415

0 commit comments

Comments
 (0)