summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-10-11 10:30:19 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-10-11 10:32:42 +0100
commit74fd0ec0633d6db3225b86d18cef96cbbce84335 (patch)
tree935fd1660a3f62f513d051baa2723c0b59191d34
parentd251d51b34e1d00218fe293d8f90d526c1b5f6ce (diff)
downloadpsycopg2-74fd0ec0633d6db3225b86d18cef96cbbce84335.tar.gz
Fixed farto in error checking assigning description values
Unnoticed since Feb 2011 \o/
-rw-r--r--psycopg/pqpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c
index b490d4f..48c06ee 100644
--- a/psycopg/pqpath.c
+++ b/psycopg/pqpath.c
@@ -1294,7 +1294,7 @@ _pq_fetch_tuples(cursorObject *curs)
PyTuple_SET_ITEM(dtitem, 4, tmp);
if (!(tmp = PyInt_FromLong(fmod & 0xFFFF))) {
- PyTuple_SET_ITEM(dtitem, 5, tmp);
+ goto err_for;
}
PyTuple_SET_ITEM(dtitem, 5, tmp);
}