From 7389f8454f49aa6f943756406541aa075db60c09 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 29 Oct 2012 23:06:44 +0000 Subject: [PATCH] Ensuring that the swig typemaps for SBData set the size to 0 along with the pointer to NULL There should be no functional changes as SBData creation functions already checked for NULL regardless of size - but it ensures consistency llvm-svn: 166978 --- lldb/scripts/Python/python-typemaps.swig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/scripts/Python/python-typemaps.swig b/lldb/scripts/Python/python-typemaps.swig index 596b851..1a67f7b 100644 --- a/lldb/scripts/Python/python-typemaps.swig +++ b/lldb/scripts/Python/python-typemaps.swig @@ -178,6 +178,7 @@ } } else if ($input == Py_None) { $1 = NULL; + $2 = 0; } else { PyErr_SetString(PyExc_TypeError,"not a list"); return NULL; @@ -208,6 +209,7 @@ } } else if ($input == Py_None) { $1 = NULL; + $2 = 0; } else { PyErr_SetString(PyExc_TypeError,"not a list"); return NULL; @@ -238,6 +240,7 @@ } } else if ($input == Py_None) { $1 = NULL; + $2 = 0; } else { PyErr_SetString(PyExc_TypeError,"not a list"); return NULL; @@ -268,6 +271,7 @@ } } else if ($input == Py_None) { $1 = NULL; + $2 = 0; } else { PyErr_SetString(PyExc_TypeError,"not a list"); return NULL; @@ -298,6 +302,7 @@ } } else if ($input == Py_None) { $1 = NULL; + $2 = 0; } else { PyErr_SetString(PyExc_TypeError,"not a list"); return NULL; -- 2.7.4