diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-05-13 19:36:00 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-05-16 23:25:26 +0200 |
commit | 6ab99f519b3dd96d5d51a8259f07398542dc9473 (patch) | |
tree | 839ee57a550b034db081085a1c00d0ba635b8aab /README | |
parent | e5c7ef4573adcdcafec7523a77724b171456b215 (diff) | |
download | manaserv-6ab99f519b3dd96d5d51a8259f07398542dc9473.tar.gz manaserv-6ab99f519b3dd96d5d51a8259f07398542dc9473.tar.bz2 manaserv-6ab99f519b3dd96d5d51a8259f07398542dc9473.tar.xz manaserv-6ab99f519b3dd96d5d51a8259f07398542dc9473.zip |
Don't return configuration value by reference
The lifetime of the default value is often not long enough to survive to
the next statement, so returning it by reference is dangereous.
At the moment there may not be any place that actually tries to use the
returned value as a reference, but it's better not to wait on it to
happen. This was already fixed on the client after it lead to strange
crashes.
Reviewed-by: Jared Adams
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions