summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-03-07 17:10:19 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-03-07 17:10:19 (GMT)
commit2db56878f610136e107993ce0c33b67051dfe0ae (patch)
tree252642c121cd052cbeea84445ef0ed01e0b40dbc /Modules
parent154b7ad07e775f15a0a556c7ec3ae5ab5762ae1e (diff)
downloadcpython-2db56878f610136e107993ce0c33b67051dfe0ae.zip
cpython-2db56878f610136e107993ce0c33b67051dfe0ae.tar.gz
cpython-2db56878f610136e107993ce0c33b67051dfe0ae.tar.bz2
Silence compiler warning.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_struct.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index e8fe67d..d09013f 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -155,8 +155,11 @@ get_pylong(PyObject *v)
assert(PyLong_Check(v));
r = v;
}
- else
+ else {
+ r = NULL; /* silence compiler warning about
+ possibly uninitialized variable */
assert(0); /* shouldn't ever get here */
+ }
return r;
}