aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-10-05 11:09:11 +0100
committerCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-10-05 11:09:11 +0100
commit3e67d48702bb2dd2df4af01fc3f8eb322e5e5370 (patch)
treeebecac5ebc1012108dfed7c7cb64d590a8532e3d /python
parent8a1fa6631f1b1a660b758cfaaf61a4eab4e677ec (diff)
downloadbrotli-3e67d48702bb2dd2df4af01fc3f8eb322e5e5370.zip
brotli-3e67d48702bb2dd2df4af01fc3f8eb322e5e5370.tar.gz
brotli-3e67d48702bb2dd2df4af01fc3f8eb322e5e5370.tar.bz2
[brotlimodule.cc] remove C++11 vector::data() call
Diffstat (limited to 'python')
-rw-r--r--python/brotlimodule.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc
index bc7ea08..269de2d 100644
--- a/python/brotlimodule.cc
+++ b/python/brotlimodule.cc
@@ -191,7 +191,7 @@ static PyObject* brotli_decompress(PyObject *self, PyObject *args) {
ok = BrotliDecompress(in, out);
if (ok) {
- ret = PyBytes_FromStringAndSize((char*)output.data(), output.size());
+ ret = PyBytes_FromStringAndSize((char*)(output.size() ? &output[0] : NULL), output.size());
} else {
PyErr_SetString(BrotliError, "BrotliDecompress failed");
}