diff options
author | David Kalnischkies <david@kalnischkies.de> | 2020-05-24 16:27:15 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2020-05-25 12:05:00 +0200 |
commit | 90a7a5e32643a67f4245460e7659d9dee230e9e7 (patch) | |
tree | f2c3fd350652f4186549a0956f950dfde9275d02 /apt-pkg/init.cc | |
parent | c77566fd8f21a1a44efb4092c90996d1cc8eaf24 (diff) |
Ensure EDSP doesn't use a dangling architecture string
../apt-pkg/edsp.cc:861:23: error: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
const char *arch = _config->Find("APT::Architecture").c_str();
Compilers are probably optimizing it the way the patch does by hand now. Small
string optimisation helps likely as well. Othwise that should have failed left
and right as EDSP is used by experimental and such builders to talk to aspcud.
Reported-By: clang
Diffstat (limited to 'apt-pkg/init.cc')
0 files changed, 0 insertions, 0 deletions