Avoid building constant strings on the stack
authorDavin McCall <davmac@davmac.org>
Mon, 23 Dec 2019 01:03:12 +0000 (11:03 +1000)
committerDavin McCall <davmac@davmac.org>
Mon, 23 Dec 2019 01:03:12 +0000 (11:03 +1000)
commit8c7582a0127242d80f4daf31b1651fed60ed3244
tree3e9de424c36774c4d13a4b2802cb67fc700e4d4b
parent438e92c565acf4da7b8e180b968d067c15e0ebad
Avoid building constant strings on the stack

In a few places cts::literal was used locally within a function,
resulting in the (constexpr) result string object being allocated on the
stack. Move these to namespace scope.
src/dinit.cc
src/includes/static-string.h