diff options
| author | Enrico Granata <egranata@apple.com> | 2012-10-29 23:06:44 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-10-29 23:06:44 +0000 |
| commit | 7389f8454f49aa6f943756406541aa075db60c09 (patch) | |
| tree | cd900b26d5b7b3deb77e9416b1971d9f5c65f3f7 /lldb/scripts/Python | |
| parent | 58a2c4e4538fb841667fb3271746301b0857e730 (diff) | |
| download | bcm5719-llvm-7389f8454f49aa6f943756406541aa075db60c09.tar.gz bcm5719-llvm-7389f8454f49aa6f943756406541aa075db60c09.zip | |
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
Diffstat (limited to 'lldb/scripts/Python')
| -rw-r--r-- | lldb/scripts/Python/python-typemaps.swig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/scripts/Python/python-typemaps.swig b/lldb/scripts/Python/python-typemaps.swig index 596b85195aa..1a67f7b4971 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; |

