]> granicus.if.org Git - python/commitdiff
Silence compiler warning.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 7 Mar 2010 17:10:19 +0000 (17:10 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 7 Mar 2010 17:10:19 +0000 (17:10 +0000)
Modules/_struct.c

index e8fe67d5fa38959c1eab2d3116a5108a136a624b..d09013fe4efb01da8b53215bb01fd7f9a62a8795 100644 (file)
@@ -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;
 }