summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_struct.c')
-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;
}