[brotlimodule.cc] remove C++11 vector::data() call

This commit is contained in:
Cosimo Lupo 2015-10-05 11:09:11 +01:00
parent 8a1fa6631f
commit 3e67d48702

View File

@ -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");
}