homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Arfrever, brett.cannon, christian.heimes, eric.snow, gennad, ncoghlan, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2014年02月11日.20:39:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392151164.19.0.0391455382964.issue19255@psf.upfronthosting.co.za>
In-reply-to
Content
Your checkin 6a1711c96fa6 caused a Coverity complain:
** CID 1171506: Unchecked return value (CHECKED_RETURN)
/Objects/moduleobject.c: 352 in _PyModule_ClearDict()
/Objects/moduleobject.c: 333 in _PyModule_ClearDict()
________________________________________________________________________________________________________
*** CID 1171506: Unchecked return value (CHECKED_RETURN)
/Objects/moduleobject.c: 352 in _PyModule_ClearDict()
346 const char *s = _PyUnicode_AsString(key);
347 if (s != NULL)
348 PySys_WriteStderr("# clear[2] %s\n", s);
349 else
350 PyErr_Clear();
351 }
>>> CID 1171506: Unchecked return value (CHECKED_RETURN)
>>> No check of the return value of "PyDict_SetItem(d, key, &_Py_NoneStruct)".
352 PyDict_SetItem(d, key, Py_None);
353 }
354 }
355 }
356 
357 /* Note: we leave __builtins__ in place, so that destructors
/Objects/moduleobject.c: 333 in _PyModule_ClearDict()
327 const char *s = _PyUnicode_AsString(key);
328 if (s != NULL)
329 PySys_WriteStderr("# clear[1] %s\n", s);
330 else
331 PyErr_Clear();
332 }
>>> CID 1171506: Unchecked return value (CHECKED_RETURN)
>>> No check of the return value of "PyDict_SetItem(d, key, &_Py_NoneStruct)".
333 PyDict_SetItem(d, key, Py_None);
334 }
335 }
336 }
337 
338 /* Next, clear all names except for __builtins__ */
History
Date User Action Args
2014年02月11日 20:39:24christian.heimessetrecipients: + christian.heimes, brett.cannon, ncoghlan, pitrou, vstinner, Arfrever, python-dev, gennad, eric.snow, serhiy.storchaka
2014年02月11日 20:39:24christian.heimessetmessageid: <1392151164.19.0.0391455382964.issue19255@psf.upfronthosting.co.za>
2014年02月11日 20:39:24christian.heimeslinkissue19255 messages
2014年02月11日 20:39:23christian.heimescreate

AltStyle によって変換されたページ (->オリジナル) /