]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-116102: Silence a Compiler Warning in _xxinterpqueues (gh-116230)
authorEric Snow <ericsnowcurrently@gmail.com>
Sat, 2 Mar 2024 00:28:05 +0000 (17:28 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Mar 2024 00:28:05 +0000 (00:28 +0000)
Modules/_xxinterpqueuesmodule.c

index 21ba817785cdfe0e4f0517b7f66f707bb8e50af0..e35d1699cfea89d3d1b1f678b5f58dea029da3a3 100644 (file)
@@ -1417,7 +1417,7 @@ queuesmod_get(PyObject *self, PyObject *args, PyObject *kwds)
     int64_t qid = qidarg.id;
 
     PyObject *obj = NULL;
-    int fmt;
+    int fmt = 0;
     int err = queue_get(&_globals.queues, qid, &obj, &fmt);
     if (err == ERR_QUEUE_EMPTY && dflt != NULL) {
         assert(obj == NULL);