[CalendarServer-changes] [8951] CalendarServer/trunk/twext/python/sendmsg.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 29 09:21:27 PDT 2012


Revision: 8951
          http://trac.macosforge.org/projects/calendarserver/changeset/8951
Author:   glyph at apple.com
Date:     2012-03-29 09:21:26 -0700 (Thu, 29 Mar 2012)
Log Message:
-----------
Oops.

Modified Paths:
--------------
    CalendarServer/trunk/twext/python/sendmsg.c

Modified: CalendarServer/trunk/twext/python/sendmsg.c
===================================================================
--- CalendarServer/trunk/twext/python/sendmsg.c	2012-03-29 09:55:11 UTC (rev 8950)
+++ CalendarServer/trunk/twext/python/sendmsg.c	2012-03-29 16:21:26 UTC (rev 8951)
@@ -420,10 +420,5 @@
         PyErr_SetFromErrno(sendmsg_socket_error);
         return NULL;
     }
-    PyObject *rval;
-    if ((rval = Py_BuildValue("i", sa.sa_family)) == NULL) {
-        return NULL;
-    }
-    Py_DECREF(rval);
-    return rval;
+    return Py_BuildValue("i", sa.sa_family);
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120329/a693b7d8/attachment.html>


More information about the calendarserver-changes mailing list