diff options
| author | Brett Cannon <bcannon@gmail.com> | 2011-02-22 20:15:44 +0000 |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2011-02-22 20:15:44 +0000 |
| commit | ffbf24bf0cc297d080d6d68bc809a9c156c49123 (patch) | |
| tree | 784a982964a18755673f3d95a8d98eadb333671e /Python/sysmodule.c | |
| parent | d563a72e39fd9aa04119460ee7981b9f2287a19d (diff) | |
| download | cpython-ffbf24bf0cc297d080d6d68bc809a9c156c49123.tar.gz | |
Issue #8914: fix various warnings from the Clang static analyzer v254.
Diffstat (limited to 'Python/sysmodule.c')
| -rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index de51155a49..89fe4f1fe6 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1176,7 +1176,6 @@ PySys_AddXOption(const wchar_t *s) PyObject *opts; PyObject *name = NULL, *value = NULL; const wchar_t *name_end; - int r; opts = get_xoptions(); if (opts == NULL) @@ -1194,7 +1193,7 @@ PySys_AddXOption(const wchar_t *s) } if (name == NULL || value == NULL) goto error; - r = PyDict_SetItem(opts, name, value); + PyDict_SetItem(opts, name, value); Py_DECREF(name); Py_DECREF(value); return; |
