Skip to content
Snippets Groups Projects
Commit a105780c authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] The error SEGFAULT in function addProc is fixed.

parent 5d123f37
No related branches found
No related tags found
1 merge request!7Bugs 2846
......@@ -3,6 +3,8 @@
#include <Python.h>
#include "dap_server_python.h"
#include "dap_enc_http.h"
#include "dap_http.h"
typedef struct PyDapEncHttp{
PyObject_HEAD
......
......@@ -5,6 +5,6 @@ PyObject *enc_http_add_proc_py(PyObject *self, PyObject *args){
const char *HTTP_URL;
if (!PyArg_ParseTuple(args, "O|s", &obj_server, &HTTP_URL))
return NULL;
enc_http_add_proc_py(((PyDapServerObject*)obj_server)->t_server, HTTP_URL);
enc_http_add_proc(DAP_HTTP(((PyDapServerObject*)obj_server)->t_server), HTTP_URL);
return PyLong_FromLong(0);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment