Fix bindings/python/plplotcmodule.i so that all -Wuninitialized (with no optimization) warnings for the C code generated by swig are removed. The trick was to initialize the appropriate variables to NULL, and then use Py_CLEAR (which is a no-op if there is a NULL argument) rather than the old-fashioned and error-prone Py_DECREF and Py_XDECREF (see http://docs.python.org/2/c-api/refcounting.html) to adjust the reference count properly in both the normal return path and in the return path that cleans up after an error.
Fix bindings/python/plplotcmodule.i so that all -Wuninitialized (with
no optimization) warnings for the C code generated by swig are
removed. The trick was to initialize the appropriate variables to
NULL, and then use Py_CLEAR (which is a no-op if there is a NULL
argument) rather than the old-fashioned and error-prone Py_DECREF and
Py_XDECREF (see http://docs.python.org/2/c-api/refcounting.html) to
adjust the reference count properly in both the normal return path and
in the return path that cleans up after an error.

ToDo.  I have since discovered that -O3 -Wuninitialized finds more
uninitialized issues than the -O0 case.  I plan to fix those warnings
in a later commit.


svn path=/trunk/; revision=12611

FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot