aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2014-08-28 20:36:49 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2014-08-28 20:36:49 +0100
commit134128bbb7f2907e80987f23e7a605ec30becf77 (patch)
treeca85f3816788ffea20cc4de91de01c07de6ae3aa /configure.ac
parent2d8c07fb1d39165bd762bd191e51213dc7ac6415 (diff)
downloadpaludis-134128bbb7f2907e80987f23e7a605ec30becf77.tar.gz
paludis-134128bbb7f2907e80987f23e7a605ec30becf77.tar.xz
Don't inappropriately rely on evaluation order
If the key wasn't already present in the map and there were non-trival default and transformation functions, and the compiler decided to evaluate the LHS of the assignment before the RHS, the [] would create the map entry with an empty string value, which would then be returned by get() and passed to the transformation function instead of using the default. Found by compiling with clang (where it broke the PortageEnvironment tests).
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions