Commit 85c5f9a8 85c5f9a8decef2583674bc957caef1818e9628a9 by Sergey Poznyakoff

Bugfixes.

* libmu_sieve/sieve.y (mu_sieve_compile): Initialize rc.
* python/libmu_py/sieve.c (api_sieve_machine_error_text): Fix
type of length.
1 parent aed829a6
...@@ -606,7 +606,7 @@ mu_sieve_machine_finish (mu_sieve_machine_t mach) ...@@ -606,7 +606,7 @@ mu_sieve_machine_finish (mu_sieve_machine_t mach)
606 int 606 int
607 mu_sieve_compile (mu_sieve_machine_t mach, const char *name) 607 mu_sieve_compile (mu_sieve_machine_t mach, const char *name)
608 { 608 {
609 int rc; 609 int rc = 0;
610 610
611 mu_sieve_machine_begin (mach, name); 611 mu_sieve_machine_begin (mach, name);
612 612
......
...@@ -120,7 +120,7 @@ api_sieve_machine_error_text (PyObject *self, PyObject *args) ...@@ -120,7 +120,7 @@ api_sieve_machine_error_text (PyObject *self, PyObject *args)
120 mu_stream_t estr; 120 mu_stream_t estr;
121 mu_transport_t trans[2]; 121 mu_transport_t trans[2];
122 PyObject *retval; 122 PyObject *retval;
123 size_t length = 0; 123 mu_off_t length = 0;
124 124
125 if (!PyArg_ParseTuple (args, "O!", &PySieveMachineType, &py_mach)) 125 if (!PyArg_ParseTuple (args, "O!", &PySieveMachineType, &py_mach))
126 return NULL; 126 return NULL;
......