From d594d718f2ef8c95ce7907dc19c030ad839ab9c9 Mon Sep 17 00:00:00 2001 From: Vincent Castellano Date: Sat, 23 May 2015 18:47:39 -0700 Subject: [PATCH] clang identified some bugs that gcc nor I did! --- python-tg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-tg.c b/python-tg.c index 25d3b5a..a045bda 100644 --- a/python-tg.c +++ b/python-tg.c @@ -750,7 +750,7 @@ void py_do_all (void) { int len, len1, len2, len3; int limit, offset; - long msg_id; + long msg_id = 0; PyObject *pyObj1 = NULL; PyObject *pyObj2 = NULL; PyObject *cb_extra = NULL; @@ -949,7 +949,7 @@ void py_do_all (void) { PyErr_Print(); break; case pq_set_profile_name: - if(PyArg_ParseTuple(args, "s#s#|O", &str1, &len1, &str2, len2, &cb_extra)) + if(PyArg_ParseTuple(args, "s#s#|O", &str1, &len1, &str2, &len2, &cb_extra)) tgl_do_set_profile_name (TLS, str1, len1, str2, len2, py_user_cb, cb_extra); else PyErr_Print(); @@ -979,7 +979,7 @@ void py_do_all (void) { break; case pq_delete_msg: case pq_restore_msg: - if(PyArg_ParseTuple(args, "l|O", msg_id, &cb_extra)) + if(PyArg_ParseTuple(args, "l|O", &msg_id, &cb_extra)) tgl_do_delete_msg (TLS, msg_id, py_empty_cb, cb_extra); else PyErr_Print();