diff options
Diffstat (limited to 'Lib/python/std_pair.i')
-rw-r--r-- | Lib/python/std_pair.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/python/std_pair.i b/Lib/python/std_pair.i index 172572bff..cf463cb8f 100644 --- a/Lib/python/std_pair.i +++ b/Lib/python/std_pair.i @@ -47,7 +47,7 @@ res = get_pair(first, second, val); } } else { - value_type *p; + value_type *p = 0; swig_type_info *descriptor = swig::type_info<value_type>(); res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR; if (SWIG_IsOK(res) && val) *val = *p; @@ -104,7 +104,7 @@ res = get_pair(first, second, val); } } else { - value_type *p; + value_type *p = 0; swig_type_info *descriptor = swig::type_info<value_type>(); res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR; if (SWIG_IsOK(res) && val) *val = p; |