diff options
Diffstat (limited to 'src/lib/pq/pq_result_helper.c')
-rw-r--r-- | src/lib/pq/pq_result_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/pq/pq_result_helper.c b/src/lib/pq/pq_result_helper.c index 798828e24..caf9a581d 100644 --- a/src/lib/pq/pq_result_helper.c +++ b/src/lib/pq/pq_result_helper.c | |||
@@ -1454,8 +1454,7 @@ extract_array_generic ( | |||
1454 | uint32_t sz; | 1454 | uint32_t sz; |
1455 | 1455 | ||
1456 | sz = ntohl (*(uint32_t *) ptr); | 1456 | sz = ntohl (*(uint32_t *) ptr); |
1457 | sz += is_string ? 1 : 0; | 1457 | total += sz + (is_string ? 1 : 0); |
1458 | total += sz; | ||
1459 | ptr += sizeof(uint32_t); | 1458 | ptr += sizeof(uint32_t); |
1460 | ptr += sz; | 1459 | ptr += sz; |
1461 | 1460 | ||