File: arm4module.c
Function: stop_transaction
Error: returning (PyObject*)NULL without setting an exception
3907 static PyObject *
3908 stop_transaction (PyObject *self, PyObject *args, PyObject *keywds)
3909 {
3910     arm_error_t status;
3911 	ArmHandle *tran_handle;
3912 	arm_tran_status_t tran_status = ARM_STATUS_GOOD;
3913 	ArmBuffer *buffer = NULL;
3914 	arm_buffer4_t *buffer_ptr = NULL;
3915 
3916 	/*
3917 	 * Supported calling signatures:
3918 	 *	stop_transaction (tran_handle)
3919 	 *	stop_transaction (tran_handle, status)
3920 	 *	stop_transaction (tran_handle, status,(buffers...))
3921 	 */
3922 	static char *kwlist[] = {"tran_handle", "status", "buffer", NULL};
3923 
3924 	if (!PyArg_ParseTupleAndKeywords(args, keywds, "O|"PARSE_INT32_FMT"O:stop_transaction", kwlist,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
3925 									 &tran_handle, &tran_status, &buffer))
3926         return NULL;
3927 	if (!ArmHandle_Object_Check(tran_handle))
when taking True path
when considering range: -0x80000000 <= value <= -1
taking False path
3928 		return NULL;
3929 	if (buffer && ArmBuffer_Object_Check(buffer))
taking True path
when taking False path
when considering value == (int)0 from arm4module.c:3929
taking False path
3930 	{
3931 		prepare (buffer);
3932 		buffer_ptr = &(buffer->arm_buffer);
3933 	}
3934 
3935 	status = arm_stop_transaction(
3936 		tran_handle->arm_handle,
3937 		tran_status,
3938 		0,
3939 		buffer_ptr);
3940 	if (GETSTATE0->enableExceptions && (status != ARM_SUCCESS))
when considering range: -0x80000000 <= value <= -1
when considering range: -0x80000000 <= value <= -1
taking True path
3941 	{
3942 		set_arm_error (status, "arm_stop_transaction");
3943 		return NULL;
3944 	}
3945 
3946 	/* Empty return */
3947 	Py_INCREF(Py_None);
3948 	return Py_None;
3949 }
returning (PyObject*)NULL without setting an exception
found 9 similar trace(s) to this