1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[python] static char[]

This commit is contained in:
Witold Filipczyk 2022-01-30 19:23:07 +01:00
parent cba95b2b30
commit 0dd77a5d33

View File

@ -82,7 +82,8 @@ python_bind_key(PyObject *self, PyObject *args, PyObject *kwargs)
{ {
const char *keystroke; const char *keystroke;
PyObject *callback; PyObject *callback;
char *keymap = "main"; static char s_main[] = "main";
char *keymap = s_main;
PyObject *key_tuple; PyObject *key_tuple;
PyObject *old_callback; PyObject *old_callback;
struct string event_name; struct string event_name;